Skip to main content

Application that calculate time duration until reach a given date

Project description

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)

app-flow-example

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

time_until-0.1.3.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

time_until-0.1.3-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file time_until-0.1.3.tar.gz.

File metadata

  • Download URL: time_until-0.1.3.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for time_until-0.1.3.tar.gz
Algorithm Hash digest
SHA256 18958fc46dd0f791bdeeff030cbd612d011c25dd28d1ea4e148fb71db71978c7
MD5 85616fd301a73e6c23f30b1d120ca3de
BLAKE2b-256 33ff3b46d90326ab57bc4c218127ee9292c255bb1e257373deb85e9f6df24331

See more details on using hashes here.

File details

Details for the file time_until-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: time_until-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for time_until-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 78602c9c7d71861218e0d9762bbd5b0834d577b15f18d9f684f431e4287a4519
MD5 2dd38bfbda1500691a8619844a3108dc
BLAKE2b-256 4b46ec8f208a640a43cc8a9adb3a8dbdc48f828c5d6f5147d6af8f699117b1dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page