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

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/your/file.txt'
uploaded_file = anondrop.upload(file_path)

print(f"File URL: {uploaded_file.fileurl}")

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.4.tar.gz (3.9 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.4-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anondrop-0.1.4.tar.gz
  • Upload date:
  • Size: 3.9 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.4.tar.gz
Algorithm Hash digest
SHA256 fca6ad65f8faacc80bab20cdc117cfc6b177c907d3ffd023ea3b890fbc1ecf76
MD5 b18a6a4c249d0827767e9ffcac41bc33
BLAKE2b-256 fca580fee75f6b222817e8d014c7bbb29d3cf7a3248c2ea5a96ebc42d21a9f36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anondrop-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 23c6e0b372f756aa539bb58170f2cfd2f082843f8d9f16e9cbe40c17407114f9
MD5 671b1e7bcf55ed487ebf1b5bde8dd621
BLAKE2b-256 3b377422078c7d2f9e07393bcfa0d248aa6c357b10b72740a2b596bf533eec78

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