
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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.
You can install and update the AnonDrop package using pip:
pip install --upgrade anondrop
Head to the AnonDrop Dashboard and click your Client Key in the top left
To upload a file, you need to set your Client Key and call the upload
function:
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
Do the same as before, but this time add filename="filename.ext"
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
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!
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
To upload a remote file, first have your Client Key set, then call the remoteUpload
function:
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
To delete a file, use the delete
function with the file ID:
import anondrop
anondrop.setClientKey('your_client_key_here')
file_id = 'your_file_id_here'
anondrop.delete(file_id)
print("File deleted successfully.")
Contributions are welcome! Please feel free to submit a pull request or open an issue for any enhancements or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A package for uploading and deleting files using AnonDrop API
We found that anondrop demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.