time-until-cli
Application that calculate time duration until reach a given date.
Main objective: Understanding the logic of Python app publishing and documenting it on a simple project.
Usage
time_until 22h
Application flow & use cases
Using CLI to calculate time duration to a given input date or timestamp.
| Input | Output / Response |
|---|---|
time-until 23h |
Time remaining: 8 hour(s) 22 minute(s) 42 second(s) |
time-until 2023-02-27 |
Time remaining: 04 month(s) 14 day(s) 8 hour(s) 22 minute(s) 42 second(s) |
Main goals
Build a Python app that works as a CLI (Command-line Interface) that receives a future date or time and returns a calculation of remaining time from now until that given date or time.
Once working, this project must be configured and submitted as Python package thru PyPI Modules. The process of development, build, release and publishing is the core of the project, to understand it and provice ideas and thoghts of process automation.
Feel free to initiate a discusison, open a issue or a pull request to this project. All kinds of contributions and ideas are welcome. Let's code!
Development
A quick guide to contribute (or develop) on this project.
We recommend to use an isolated environment, then install the devolpment dependencies:
# For Unix / macOS systems
cd path/to/time-until # substitute with the real path to this project directory
# Activate Python enviroment
python3 -m venv .venv
source .venv/bin/activate
# Install development dependencies
pip install -r requirements-development.txt
Testing
With development dependencies installed, you can execute tests with pytest:
# Run tests
pytest
Packaging
Create a package of this project with wheel:
# Build
python3 -m build --wheel
Metadata
Release files for time-until 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| time_until-0.1.3.tar.gz | 16.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| time_until-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.1 kB
Release files / time_until-0.1.3.tar.gz
| Download URL | time_until-0.1.3.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18958fc46dd0f791bdeeff030cbd612d011c25dd28d1ea4e148fb71db71978c7
|
|
BLAKE2b-256 checksum How to use checksums |
33ff3b46d90326ab57bc4c218127ee9292c255bb1e257373deb85e9f6df24331
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / time_until-0.1.3-py3-none-any.whl
| Download URL | time_until-0.1.3-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78602c9c7d71861218e0d9762bbd5b0834d577b15f18d9f684f431e4287a4519
|
|
BLAKE2b-256 checksum How to use checksums |
4b46ec8f208a640a43cc8a9adb3a8dbdc48f828c5d6f5147d6af8f699117b1dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for time-until 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.