Skip to content

Releases: nstrydom2/anonfile-api

anonfile 1.0.0

26 Jul 05:42
84d785e
Compare
Choose a tag to compare

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

12 Sep 19:48
1f9a400
Compare
Choose a tag to compare

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 the AnonFile 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 a ddl field; it contains a direct
    download link if this structured was returned by a download method, else None
  • 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

22 Aug 03:13
fcff50b
Compare
Choose a tag to compare

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

28 Jul 21:30
5e0917c
Compare
Choose a tag to compare
  • Updates requests and requests-toolbelt dependencies
  • Modified test_anonfile.py to be more robust by adding a test for .mkv video format (see also: #50 )

v0.2.4

13 May 17:00
dcbbeb4
Compare
Choose a tag to compare
  • 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 to upload and download
# 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)

05 May 19:01
7ced3b8
Compare
Choose a tag to compare
  • 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

05 May 03:34
1914f2b
Compare
Choose a tag to compare

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)

02 Apr 19:50
Compare
Choose a tag to compare

This release reflects a more robust retry strategy for making http like requests.

v0.1.2-stable (pre-alpha)

29 Jun 02:38
e24f37f
Compare
Choose a tag to compare

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)

23 Apr 22:28
642167a
Compare
Choose a tag to compare

This is a pre-alpha release for community testing. Alpha release will be based on the effectiveness and accuracy of this release. Feedback welcome.