Skip to main content

Pick date by conditions and list of re-like wildcards

Project description

Welcome to date_pick ⛏️

Codestyle: Black Codecheck: Flake8

Description

Pick date by conditions and list of re-like wildcards

Quickstart

>>> from date_pick import DatePick
>>> import datetime
>>> 
>>> datetime.datetime.now()
datetime.datetime(2021, 11, 22, 15, 53, 20, 357911)
>>> 
>>> picker = DatePicker()
>>> # pick the nearest Monday 4 AM
>>> picker.pick(["*-*-*-0 04:00:00"])
"2021-11-29 04:00:00"

Authors

  • Nick Kuzmenkov

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

date_pick-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

date_pick-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file date_pick-0.1.0.tar.gz.

File metadata

  • Download URL: date_pick-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for date_pick-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f0c03a71193ffb42dba9f0b3dc2cd4dce82a880e9efb5f7d30e34bdea38d9404
MD5 236cd0334493a6995832aeff4ba0fc0a
BLAKE2b-256 786c1f1136c6e5ff181ca59c29feb8a88df603449bbf49da5d797a3f873fc1ec

See more details on using hashes here.

File details

Details for the file date_pick-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: date_pick-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for date_pick-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0273768c09e2edb3f80d0e522413428236d09266018d3eb805a6be49466d6f13
MD5 58a628d9aa4169598aaf876064668129
BLAKE2b-256 72ab7048ec41d8a6a74ab8d3f86cbfbd25e7c32104020e2a46cc217767a78cdc

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