Skip to main content

"library for working with uncertain, fuzzy, or partially unknown dates and date intervals"

Project description

undate-python

undate is a python library for working with uncertain or partially known dates.

It was initially created as part of a DH-Tech hackathon in November 2022.


⚠️ WARNING: this is pre-alpha software and is NOT feature complete! Use with caution. ⚠️


License Documentation Status unit tests codecov Code style: black

All Contributors

Documentation

Project documentation is available on ReadTheDocs https://undate-python.readthedocs.io/en/latest/

License

This software is licensed under the Apache 2.0 License.

Installation

To install the most recent release from PyPI:

pip install undate

To install the latest development version from GitHub:

pip install git+https://github.com/dh-tech/undate-python.git@develop#egg=undate

To install a specific release or branch, run the following (replace [tag-name] with the tag or branch you want to install):

pip install git+https://github.com/dh-tech/undate-python.git@[tag-name]

Instructions to setup for development

Clone repo

$ git clone git@github.com:dh-tech/undate-python.git
cd undate-python

Setup and initialize git flow

This repository uses git-flow branching conventions:

  • main will always contain the most recent release
  • develop branch is the latest version of work in progress

Pull requests should be made against the develop branch.

It is recommended to install git flow (on OSX, use brew or ports, e.g.: brew install git-flow; on Ubuntu/Debian, apt-get install git-flow) and then initialize it in this repository via git flow init and accept the defaults. Then you can use git flow feature start to create feature development branches.

Alternately, you can check out the develop branch (git checkout develop) and create your branches manually based on develop (git checkout -b feature/xxx-name).

Set up Python environment

Use a recent version of python 3.x; recommended to use a virtualenv, e.g.

python3 -m venv undate
source undate/bin/activate

Install the package

Install an editable version of the local package along with python dependencies needed for testing and development.

pip install -e ".[dev]"

Install pre-commit hooks

pre-commit install

Run unit tests

Tests can be run with either tox or pytest.

To run all the tests in a single test file, use pytest and specify the path to the test: pytest tests/test_dateformat/test_base.py

To test cases by name, use pytest: pytest -k test_str

Create documentation

tox -e docs

Contributors

Cole Crawford
Cole Crawford

💻 👀 ⚠️
Rebecca Sutton Koeser
Rebecca Sutton Koeser

💻 👀 ⚠️
Robert Casties
Robert Casties

🔣
Julia Damerow
Julia Damerow

💻 👀 ⚠️ 📋
Malte Vogl
Malte Vogl

💻 👀 ⚠️ 📖

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

undate-0.1.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

undate-0.1.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: undate-0.1.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for undate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 791ec9c29dccfb23422e7da25cefded79f11c43514a7e71e6ee7dd19a37eceff
MD5 32c67ad365e670f2eae6e5011e76061c
BLAKE2b-256 4c4b68f0e415fc946f18b683bd272d6bc2fe8b258b750b7f34764c58b77d3484

See more details on using hashes here.

File details

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

File metadata

  • Download URL: undate-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for undate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa4b9128dd4be324009be8309dbc49aee4beff32822b0669b54a7900912ff9cf
MD5 9203e31f5f79991de19f1fa8d0fb7a25
BLAKE2b-256 425d997564f6d128debc06f9e8a443d63f7911c0c6079e8c94091a9ef33f0526

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