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.1.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.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anondrop-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 706020df86e7d14ccad5cb3a6a05e118d473a9eee1282fba15bf38f2c88282b7
MD5 27f6098eff90c4642a1c1910b352a27e
BLAKE2b-256 7aab550dcaa1d8793c0d18a6f31a2888ffd63c93d7d738bf45b8cc872d022bbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anondrop-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7508712a902baffadee63e22243e455f557913f3c05948c4bf7325d1d002240
MD5 75db089c3eff6fae48d49c63e130793e
BLAKE2b-256 c32ee66d30f3a264b6ac72424fdd0d1f6e3ae4af577b58182420d37694aeff43

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