Metadata-Version: 2.4
Name: isfree
Version: 1.0.0
Summary: Check if a domain is available using DNS
Author-email: Rocktim Saikia <rocktimthedev@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Rocktim Saikia
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: homepage, https://github.com/rocktimsaikia/package
Project-URL: repository, https://github.com/rocktimsaikia/package
Project-URL: issues, https://github.com/rocktimsaikia/package/issues
Keywords: domain,dns,availability,cli
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE.txt
Requires-Dist: dnspython>=2.0.0
Provides-Extra: dev
Requires-Dist: pre-commit; extra == "dev"
Dynamic: license-file

# isfree
[![Tests](https://github.com/rocktimsaikia/is-free/actions/workflows/test-package.yml/badge.svg)](https://github.com/rocktimsaikia/is-free/actions/workflows/test-package.yml)

Check if a domain is available using DNS.

## Installation

```bash
pip install isfree
```

## Usage

```bash
isfree example.com
```

Output:

```
✓ example.com is available
✗ google.com is taken
⚠ Invalid TLD: .invalidtld
```

Exit codes: `0` (available), `1` (taken), `2` (error)

## Development

```bash
# Clone and setup
git clone https://github.com/rocktimsaikia/is-free.git
cd is-free

# Install uv if not already installed
pip install uv

# Install package with dev dependencies
uv pip install -e ".[dev]"

# Setup pre-commit hooks
pre-commit install

# Run tests
python -m unittest
```
