Skip to main content

A package for uploading and deleting files using AnonDrop API

Project description

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 the AnonDrop package using pip:

pip install anondrop

Usage

Getting Client ID

Head to the AnonDrop Dashboard and click your id in the top left

Uploading a File

To upload a file, you need to set your CLIENT_ID and call the upload function:

import anondrop

anondrop.setClientID('your_client_id_here')
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.filelink}")
# File ID: https://anondrop.net/1369090222146457662

Deleting a File

To delete a file, use the delete function with the file ID:

import anondrop

anondrop.setClientID('your_client_id_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 file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anondrop-0.1.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anondrop-0.1.5-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file anondrop-0.1.5.tar.gz.

File metadata

  • Download URL: anondrop-0.1.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for anondrop-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6903d4817eac33b13caea52a54c4d772b64c434fde55eee631632df0b834f0e1
MD5 5263f21ed08b78b92bad2d73b7a4375f
BLAKE2b-256 c19152acd14cc5e2aa3235260cf7f5361b0af75b0f2d9f05111175b50819c827

See more details on using hashes here.

File details

Details for the file anondrop-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: anondrop-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for anondrop-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dce44652a6cb212b5dd1127b434e78d6ffe6914df25957c881686d6080477b6e
MD5 a1a7cc7c16bbfdf21ec9bdeb02cffd4d
BLAKE2b-256 2f0907e4494d9b06f5c941a0ec7430876c368539f4a5e6c02c5dc13d9c65b916

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page