# AnonDrop Package
AnonDrop is a Python package that allows users to upload and delete files using the AnonDrop service. This package provides a simple interface for file management, making it easy to integrate file uploads into your applications.
## Features
- Upload files to AnonDrop with ease.
- Delete files from AnonDrop using their unique file ID.
- Simple and intuitive API.
## Installation
You can install and update the AnonDrop package using pip:
```
pip install --upgrade anondrop
```
## Usage
### Getting Client ID
Head to the <a href="https://anondrop.net/dashboard" target="_blank">AnonDrop Dashboard</a> and click your Client Key in the top left
### Uploading a File
To upload a file, you need to set your Client Key and call the `upload` function:
```python
import anondrop
anondrop.setClientKey('your_client_key_here') # anondrop.setClientID will soon be deprecated to match the website
file_path = 'path/to/tag.sk'
uploaded_file = anondrop.upload(file_path)
print(f"File URL: {uploaded_file.fileurl}")
# File URL: https://anondrop.net/1369090222146457662/tag.sk
print(f"File ID: {uploaded_file.fileid}")
# File ID: 1369090222146457662
print(f"URL: {uploaded_file.filepage}")
# File ID: https://anondrop.net/1369090222146457662
```
### Uploading a file with a custom name
Do the same as before, but this time add `filename="filename.ext"`
```python
import anondrop
anondrop.setClientKey('your_client_key_here')
file_path = 'path/to/tag.sk'
uploaded_file = anondrop.upload(file_path, filename="TagGame.sk")
print(f"File URL: {uploaded_file.fileurl}")
# File URL: https://anondrop.net/1402101757731012719/TagGame.sk
print(f"File ID: {uploaded_file.fileid}")
# File ID: 1402101757731012719
print(f"URL: {uploaded_file.filepage}")
# File ID: https://anondrop.net/1402101757731012719
```
### Uploading a file with a custom chunksize
Do the same as the first, but this time add `chunksize=size in MB`
By default, it cuts into 8MB chunks. **If you want to disable chunking, set chunksize to 0!**
```python
import anondrop
anondrop.setClientKey('your_client_key_here')
file_path = 'path/to/tag.sk'
uploaded_file = anondrop.upload(file_path, chunksize=25)
print(f"File URL: {uploaded_file.fileurl}")
# File URL: https://anondrop.net/1369090222146457662/tag.sk
print(f"File ID: {uploaded_file.fileid}")
# File ID: 1369090222146457662
print(f"URL: {uploaded_file.filepage}")
# File ID: https://anondrop.net/1369090222146457662
```
### Uploading a File Remotely
To upload a remote file, first have your Client Key set, then call the `remoteUpload` function:
```python
import anondrop
anondrop.setClientKey('your_client_key_here')
link = 'https://raw.githubusercontent.com/BubblePlayzTHEREAL/AnonDrop/refs/heads/main/setup.py'
uploaded_file = anondrop.remoteUpload(link)
print(f"File URL: {uploaded_file.fileurl}") # The url is not returned so this doesnt work.
# File URL: None
print(f"File ID: {uploaded_file.fileid}")
# File ID: 1378090451105484880
print(f"URL: {uploaded_file.filepage}")
# File ID: https://anondrop.net/1378090451105484880
```
### Deleting a File
To delete a file, use the `delete` function with the file ID:
```python
import anondrop
anondrop.setClientKey('your_client_key_here')
file_id = 'your_file_id_here'
anondrop.delete(file_id)
print("File deleted successfully.")
```
## Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue for any enhancements or bug fixes.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": "https://github.com/BubblePlayzTHEREAL/AnonDrop",
"name": "anondrop",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "anondrop, upload, delete, files",
"author": "BubblePlayz",
"author_email": "BubblePlayz <mylaptop4768@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/42/7c/f8cf1d64e3a6cd4454ef0f8c2273bfd92089e64a28c804702443e2e6c9cb/anondrop-0.2.3.tar.gz",
"platform": null,
"description": "# AnonDrop Package\n\nAnonDrop is a Python package that allows users to upload and delete files using the AnonDrop service. This package provides a simple interface for file management, making it easy to integrate file uploads into your applications.\n\n## Features\n\n\n- Upload files to AnonDrop with ease.\n- Delete files from AnonDrop using their unique file ID.\n- Simple and intuitive API.\n\n## Installation\n\nYou can install and update the AnonDrop package using pip:\n\n```\npip install --upgrade anondrop\n```\n\n## Usage\n\n### Getting Client ID\n\nHead to the <a href=\"https://anondrop.net/dashboard\" target=\"_blank\">AnonDrop Dashboard</a> and click your Client Key in the top left\n\n### Uploading a File\n\nTo upload a file, you need to set your Client Key and call the `upload` function:\n\n```python\nimport anondrop\n\nanondrop.setClientKey('your_client_key_here') # anondrop.setClientID will soon be deprecated to match the website\nfile_path = 'path/to/tag.sk'\nuploaded_file = anondrop.upload(file_path)\n\nprint(f\"File URL: {uploaded_file.fileurl}\")\n# File URL: https://anondrop.net/1369090222146457662/tag.sk\nprint(f\"File ID: {uploaded_file.fileid}\")\n# File ID: 1369090222146457662\nprint(f\"URL: {uploaded_file.filepage}\")\n# File ID: https://anondrop.net/1369090222146457662\n```\n\n### Uploading a file with a custom name\n\nDo the same as before, but this time add `filename=\"filename.ext\"`\n\n```python\nimport anondrop\n\nanondrop.setClientKey('your_client_key_here')\nfile_path = 'path/to/tag.sk'\nuploaded_file = anondrop.upload(file_path, filename=\"TagGame.sk\")\n\nprint(f\"File URL: {uploaded_file.fileurl}\")\n# File URL: https://anondrop.net/1402101757731012719/TagGame.sk\nprint(f\"File ID: {uploaded_file.fileid}\")\n# File ID: 1402101757731012719\nprint(f\"URL: {uploaded_file.filepage}\")\n# File ID: https://anondrop.net/1402101757731012719\n```\n\n### Uploading a file with a custom chunksize\n\nDo the same as the first, but this time add `chunksize=size in MB`\n\nBy default, it cuts into 8MB chunks. **If you want to disable chunking, set chunksize to 0!**\n\n```python\nimport anondrop\n\nanondrop.setClientKey('your_client_key_here')\nfile_path = 'path/to/tag.sk'\nuploaded_file = anondrop.upload(file_path, chunksize=25)\n\nprint(f\"File URL: {uploaded_file.fileurl}\")\n# File URL: https://anondrop.net/1369090222146457662/tag.sk\nprint(f\"File ID: {uploaded_file.fileid}\")\n# File ID: 1369090222146457662\nprint(f\"URL: {uploaded_file.filepage}\")\n# File ID: https://anondrop.net/1369090222146457662\n```\n\n### Uploading a File Remotely\n\nTo upload a remote file, first have your Client Key set, then call the `remoteUpload` function:\n\n```python\nimport anondrop\n\nanondrop.setClientKey('your_client_key_here')\nlink = 'https://raw.githubusercontent.com/BubblePlayzTHEREAL/AnonDrop/refs/heads/main/setup.py'\nuploaded_file = anondrop.remoteUpload(link)\n\nprint(f\"File URL: {uploaded_file.fileurl}\") # The url is not returned so this doesnt work.\n# File URL: None\nprint(f\"File ID: {uploaded_file.fileid}\")\n# File ID: 1378090451105484880\nprint(f\"URL: {uploaded_file.filepage}\")\n# File ID: https://anondrop.net/1378090451105484880\n```\n\n### Deleting a File\n\nTo delete a file, use the `delete` function with the file ID:\n\n```python\nimport anondrop\n\nanondrop.setClientKey('your_client_key_here')\nfile_id = 'your_file_id_here'\nanondrop.delete(file_id)\nprint(\"File deleted successfully.\")\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a pull request or open an issue for any enhancements or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A package for uploading and deleting files using AnonDrop API",
"version": "0.2.3",
"project_urls": {
"Homepage": "https://github.com/BubblePlayzTHEREAL/AnonDrop"
},
"split_keywords": [
"anondrop",
" upload",
" delete",
" files"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f6d89df813c6bb37c48caf3b6e44c1002ef40f8e5d2fe0dfebbe46c831e27077",
"md5": "4354af31cf5289391d7f324cc48e8654",
"sha256": "ced48ebcae04751cec9df8b776d5b6854d8c0f5a1b509ad60f330f4c73511db1"
},
"downloads": -1,
"filename": "anondrop-0.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4354af31cf5289391d7f324cc48e8654",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4815,
"upload_time": "2025-08-05T02:13:38",
"upload_time_iso_8601": "2025-08-05T02:13:38.517807Z",
"url": "https://files.pythonhosted.org/packages/f6/d8/9df813c6bb37c48caf3b6e44c1002ef40f8e5d2fe0dfebbe46c831e27077/anondrop-0.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "427cf8cf1d64e3a6cd4454ef0f8c2273bfd92089e64a28c804702443e2e6c9cb",
"md5": "f9077732f5278072dfc98e69c7f048be",
"sha256": "9d03e987fdca6a83c24b4816941e989dbe7a8095accb3372b13ca6f20608a49e"
},
"downloads": -1,
"filename": "anondrop-0.2.3.tar.gz",
"has_sig": false,
"md5_digest": "f9077732f5278072dfc98e69c7f048be",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4896,
"upload_time": "2025-08-05T02:13:39",
"upload_time_iso_8601": "2025-08-05T02:13:39.274672Z",
"url": "https://files.pythonhosted.org/packages/42/7c/f8cf1d64e3a6cd4454ef0f8c2273bfd92089e64a28c804702443e2e6c9cb/anondrop-0.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-05 02:13:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "BubblePlayzTHEREAL",
"github_project": "AnonDrop",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "anondrop"
}