atai-url-tool
atai-url-tool is a command-line interface (CLI) tool that fetches a URL and determines its content type, mapping it to a simplified type. It’s designed to quickly check the MIME type of a URL and categorize it accordingly.
Features
- Fetch URL Headers: Uses an HTTP GET request to retrieve the
Content-Typeheader. - Simplified Type Mapping: Maps detailed MIME types (e.g.,
application/pdf,audio/mpeg) to simple labels likepdf,mp3, etc. - Easy-to-Use CLI: Run the tool directly from your terminal with a single command.
Installation
You can install atai-url-tool via pip (once published on PyPI):
pip install atai-url-tool
Alternatively, clone the repository and install it locally:
git clone https://github.com/AtomGradient/atai-url-tool.git
cd atai-url-tool
pip install .
Usage
Run atai-url-tool from the command line with the URL you want to check:
atai-url-tool https://example.com/sample.pdf
The tool will output the fetched content type and the simplified result. For example:
{"type": "pdf", "path": "https://example.com/sample.pdf"}
Development
To contribute or modify atai-url-tool:
-
Clone the repository:
git clone https://github.com/AtomGradient/atai-url-tool.git cd atai-url-tool
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
-
Make your changes, write tests, and submit a pull request.
License
atai-url-tool is released under the MIT License. See the LICENSE file for details.
Metadata
Release files for atai-url-tool 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| atai_url_tool-0.0.1.tar.gz | 4.7 kB | Without provenance | Details for atai_url_tool-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| atai_url_tool-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for atai_url_tool-0.0.1-py3-none-any.whl |
Total release size: 9.9 kB
Release files / atai_url_tool-0.0.1.tar.gz
| Download URL | atai_url_tool-0.0.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31f224ad0607768b7bf4b03978c6e974db0367cd4edd0ecf667c2e728201c71e
|
|
BLAKE2b-256 checksum How to use checksums |
6100762ba1f6fe07e613dccf7252561d9bc768c5c143c9985e668d7a3066a84e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / atai_url_tool-0.0.1-py3-none-any.whl
| Download URL | atai_url_tool-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82c337e7975ee10e580209c6f5e94419e846f03aaaf062e109ef0a6d9beed1c4
|
|
BLAKE2b-256 checksum How to use checksums |
dc91fc3fa4f00d0d6c08cec37527764fa988016cb0b30b9c613369bc6714ed46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for atai-url-tool 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.