Skip to main content

Create a timeline by listing events with multilingual support.

Project description

PyTimeliner

Issues open Last commit License Latest version PyPI Version Downloads

PyTimeliner is a Python package for organizing events and dates in a chronological timeline with multilingual support. This package enables you to add events in various languages and create a well-ordered timeline.

Features

  • Add and display events in different languages
  • Automatically organizes events in chronological order
  • Useful for developers working on event-based projects

Installation

Using setup.py

First, clone the repository and navigate to the project directory. Then, install the package with:

pip install -e .

This package uses googletrans for translation support. If you are using requirements.txt, make sure it contains:

googletrans==4.0.0-rc1

Usage

Using PyTimeliner, you can easily add events and display them in a timeline format.

Example Usage

from pytimeliner.timeliner import Timeliner

# English timeline
timeline = Timeliner(language='en')
timeline.add_event("2024-01-01", "New Year")
timeline.add_event("2024-12-25", "Christmas")
timeline.display_timeline()

# Spanish timeline
timeline_es = Timeliner(language='es')
timeline_es.add_event("2024-01-01", "New Year")
timeline_es.add_event("2024-12-25", "Christmas")
timeline_es.display_timeline()

Output

English:

2024-01-01: New Year
2024-12-25: Christmas
Spanish:

2024-01-01: Año Nuevo
2024-12-25: Navidad

Running Tests

To run tests, use the tests folder which contains test files:

python -m unittest discover -s tests

Contributing

If you want to contribute, feel free to open an issue or submit a pull request. All contributions are welcome!

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

pytimeliner-0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytimeliner-0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pytimeliner-0.3.tar.gz.

File metadata

  • Download URL: pytimeliner-0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytimeliner-0.3.tar.gz
Algorithm Hash digest
SHA256 6fe425fa8347e69ad07228a7baf91d7e5f082e093dbbb04e50b78ea56001e93a
MD5 d79abe6f67cb4f3e6d1e4e127863061d
BLAKE2b-256 41d339126854e62b10d6797ffef2845ac8d9671df63bcf895d3e27a4c0e29f8f

See more details on using hashes here.

File details

Details for the file pytimeliner-0.3-py3-none-any.whl.

File metadata

  • Download URL: pytimeliner-0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytimeliner-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f0f9a99201887b26cee1d7ae5f7070ac58ebd457ce5a25c14a37bd518409958
MD5 3648dcd2e5f8c2915c3e8a3072756bef
BLAKE2b-256 7a6e19895ca2e425389c0654f2c5c379900da2ebca201f428369f0536122f247

See more details on using hashes here.

Supported by

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