Content consumption analyzer CLI
Project description
consumo
Content consumption analyzer CLI
Summary
consumo is a CLI built with Typer that calculates the time to consume some form of content using the Medium formula.
Supported Arguments
consumo is meant to primarily be used with a text file full of URLs, through the list subcommand. Basically, files that look like this:
https://github.com/gbr-ufs/pf
https://github.com/gbr-ufs/cses
https://github.com/gbr-ufs/notes
https://github.com/gbr-ufs/ies
https://github.com/gbr-ufs/hack-ia-mockup
https://github.com/gbr-ufs/probabilidade-detran-se
https://github.com/gbr-ufs/hello-r-markdown
File Types
URLs
consumo supports any kind of URL. YouTube links are treated differently: passing a YouTube link to consumo returns its length.
Usage
consumo file FILE --output FILE --sort
consumo list FILE --output FILE --sort
consumo url TEXT --output FILE --sort
Skills
By developing this project, I demonstrate that I know:
Python
- av.
- bs4.
- pre-commit.
- pydantic.
- pyinstaller.
- pymupdf.
- pytest.
- pytest-cov.
- rich.
- ruff.
- trafilatura.
- ty.
- typer.
- uv.
- yt-dlp.
- zensical.
Additional Skills
Philosophies
- Dependency Injection.[^1]
- Parse, don't validate.
- Test Driven Development.[^1]
[^1]: Used for the HTML variant of calculate_consumption_time so the URL variant can reuse it. This is done in the video_duration_resolver parameter.
[^2]: Beck, K. (2003) Test-driven development: By example. Boston: Addison-Wesley (The Addison-Wesley signature series).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file consumo-0.1.0.tar.gz.
File metadata
- Download URL: consumo-0.1.0.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
991b4bfd8da95e81268eb60ff060141768ed660b321102167b325860c741065b
|
|
| MD5 |
c6cdf77a17ea6eee4d16a8cfb14dc9af
|
|
| BLAKE2b-256 |
18aafbeb2824bcbbbbeda91bbb3e912097e6119c751b3e043305d04499303410
|
File details
Details for the file consumo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: consumo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87f71bf9ea8adf760f33a8a7bd66c814fd1b3df21780750ab7202fe266720618
|
|
| MD5 |
189d8f5f39ecbb081bb5e429c86db8f0
|
|
| BLAKE2b-256 |
277addd6c699762e17afe8af7835f66f154d550cc1fbece92a9bd81bd3d3f5aa
|