Releases: nstrydom2/anonfile-api
anonfile 1.0.0
We are happy to announce the release of anonfile 1.0.0 🎉
This release includes updated dependencies and incorporates more robust testing. Check out our changlog for a more detailed list of changes. We recommend users upgrade to this version.
Please report any issues with the release on the anonfile issue tracker.
New feature suggestions can be submitted in the discussions panel here
v0.2.7
Makes further improvements to the CLI:
- implements a
--batch-file
option for the download method - adds a
--check
(for duplicates) option to the download method; this can be disabled
with the--no-check
method. It's enabled by default and may require further
user-input in case the target directory contains a file with the same name as
the issued download command - further adds a
--user-agent
and--proxies
flag to the CLI; these fields were also
added to theAnonFile
constructor - implements a preview command to obtain meta data without committing to a time-
consuming download - commands related to the log file were also added to the CLI
As for the main library, the following changes have been added since the last release:
- the
ParseResponse
data class now contains addl
field; it contains a direct
download link if this structured was returned by a download method, elseNone
- the default token was renamed from
""
to"undefined"
. This change has no effect
that would require any further actions from you - implements the preview command that's also callable from the CLI
- updates some remarks in the doc string
- the implementation for issuing requests has been improved here and there
v0.2.6
Adds the enable_logging
parameter to the upload and download method. This feature
stores the target URL in a global configuration file. It's located in
- Windows:
%LOCALAPPDATA%/anonfile
- Darwin:
$HOME/Library/Application Support/anonfile
- Linux:
$HOME/.config/anonfile
There are two functions you can use to easily access these paths in code:
from anonfile import get_config_dir, get_logfile_path
config_dir, logfile = get_config_dir(), get_logilfe_path()
print(f"{config_dir=}\n{logfile=}")
This feature is turned off by default in the library, and turned on by default
in the built-in CLI. Furthermore, the --verbose
option is now also turned on by
default in the CLI; if that's something you don't want you can turn it off again
using the --no-verbose
flag.
v0.2.5
v0.2.4
- Adds a rudimentary CLI
- Fix the URL to the change log
- Adds Python 3.9 to the list of classifiers in setup.py
- Removes
requests_html
as dependency and improves download performance - Adds
tqdm
progressbar support toupload
anddownload
# get help
anonfile [download|upload] --help
# 1. enable verbose for progressbar feedback, else run silent
# 2. both methods expect at least one argument
anonfile --verbose download --url https://anonfiles.com/93k5x1ucu0/test_txt
anonfile --verbose upload --file ./test.txt
- Upgrades
faker
dependency from 8.1.2 to 8.1.3
v0.2.2 (patched)
- Removed 'missingok=True' parameter from 'result.file_path.unlink()' in test_anonfile.py on line 28. This parameter was incompatible with version 3.7
- Updated ci workflow config to include all branches
- Upgrade 'importlib-metadata' dependency to version 4.0.1 in requirements/release.txt
- Fixed PyPI publishing issue (syntax error in setup.py)
v0.2.0
Full revamp of the projects structure and some dependencies have been removed over more lightweight options.
Major changes include:
- the main class is still called AnonFile, but the import changed from from anonfile.anonfile import AnonFile to from anonfile import AnonFile which is shorter and more convenient to write for end-users
- improved exception-handling by using authenticated decorator which redirects all error messages to sys.stderr
- the methods download_file and upload_file have been shortened to download and upload, respectively
- because this library is called anonfile I removed all references to other file sharing providers following the single-responsibility pattern (supporting multiple server providers would also have make this code more complex because they all use for the most part different endpoints for their services)
- both download and upload now use the same connection session pool
- tests can be run more easily by using the pytest module, so that's what I used: pytest --verbosity=2 -s --token "REDACTED"
v0.1.3-stable (pre-alpha)
This release reflects a more robust retry strategy for making http like requests.
v0.1.2-stable (pre-alpha)
This release incorporates newest patch in which the API URI's are updated in the code reflecting the new URI for https://anonfiles.com/ API. All of the anonymous file hosting websites have changed the URI for the API. For example, the URI used to be https://anonfiles.com/api to https://api.anonfiles.com/.
v0.1.1-stable (pre-alpha)
This is a pre-alpha release for community testing. Alpha release will be based on the effectiveness and accuracy of this release. Feedback welcome.