Anonfile

Latest version: v1.0.0

Safety actively analyzes 682229 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.0.0

- drops support for Python 3.7 and makes 3.8 the new baseline for further development (PR 81)
- updates all dependencies (PR 81, 84)
- adds `size_readable` property to `ParseResponse` (PR 80)
- improves the testing methodology of the library (PR 77)
- fixes a bug in which the config directory was set incorrectly on FreeBSD (PR 85)
- refactors and future proofs CLI code (PR 89)

0.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 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

0.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:

python
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.

0.2.5

- 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 )

0.2.4

- **NOTE** Version `0.2.3` was skipped due to a technical mistake
- Adds a rudimentary CLI
- Removes `requests_html` as dependency and improves download performance
- Adds `tqdm` progressbar support to `upload` and `download`

bash
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

0.2.2

- **NOTE** Version `0.2.1` was skipped due to a technical mistake
- Unit Tests are now compatible with Python 3.7
- Upgrades `importlib-metadata` dependency to version 4.0.1 in `requirements/release.txt`
- Fixes an error in `setup.py`

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.