Skip to main content

An unofficial library that wraps the REST API.

Project description Unofficial Python API

PyPI version CI PyPI download total PyPI pyversions PyPI license

This unofficial Python API was created to make uploading and downloading files from <> simple and effective for programming in Python. The goal of the project is to create an intuitive library for anonymous file sharing.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


Python 3.7+ is required to run this application, other than that there are no prerequisites for the project, as the dependencies are included in the repository.


To install the library is as simple as running

pip install anonfile

from the command line. To install this library in debug mode, use

pip install -e .

instead. It is recommended to create an virtual environment prior to installing this library.

Dev Notes

Run unit tests locally:

pytest --verbose -s [--token "REDACTED"]

Add the -k test_* option if you want to test only a single function.


Import the module and instantiate the AnonFile() constructor. Setting the download directory in path is optional. Using the API token in the constructor is optional as well. A valid token registers all file uploads online, i.e. a list of all uploaded files is made accessible to any user that signs into your account.

from anonfile import AnonFile

anon = AnonFile()

# upload a file and enable progressbar terminal feedback
upload = anon.upload('/home/guest/jims_paperwork.doc', progressbar=True)

# download a file and set the download directory
from pathlib import Path
target_dir = Path.home().joinpath('Downloads')
filename ="", path=target_dir)

And voilà, pain-free anonymous file sharing. If you want more information about the AnonFile API visit

Command Line Interface

# open help page for specific commands
anonfile [download|upload|preview|log] --help

# note: both methods expect at least one argument, but can take on more
anonfile download --url
anonfile upload --file ./test.txt

Built With


Navigate to tags on this repository to see all available versions.


Name Mail Address GitHub Profile
Nicholas Strydom nstrydom2
hentai-chan hentai-chan

See also the list of contributors who participated in this project.


This project is licensed under the MIT License - see the LICENSE file for more details.


  • Joseph Marie Jacquard
  • Charles Babbage
  • Ada Lovelace
  • My Dad
  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

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

anonfile-0.2.7.tar.gz (12.1 kB view hashes)

Uploaded source

Built Distribution

anonfile-0.2.7-py3-none-any.whl (11.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page