semvec/pypi-packages huggingface dataset:
simple-spinner 0.1.3
Simple Spinner in python
Requires Python: >=3.8

<div align="center">
 
 <h1> Simple Spinner </h1>
 <img src="https://user-images.githubusercontent.com/37149278/236219276-9553b362-3232-422e-abd6-ce169b0ff942.gif" width="700">
 <br><br>
 
 It is a way to print a spinning cursor in terminal using Python.  <br />
 I referred <a href="https://stackoverflow.com/questions/4995733/how-to-create-a-spinning-command-line-cursor">this document</a>.<br/><br/>

 "It's just Simple Spinning Cursor."
 
<br>
</div>

### **download**
```bash
pip install simple_spinner
```

<br><br>

### **how to use?**

use `start, end` method
```python
from simple_spinner.spinner import Spinner

spinner = Spinner()
spinner.start(desc='test')
time.sleep(3)
spinner.stop()
```

<br><br>

use `with` reserved word
```python
from simple_spinner.spinner import Spinner

with Spinner(desc='test'):
    time.sleep(3)
```
historical-timelines 0.2.3
A Python package for making historical timelines

# historical-timelines
Python package for creating timelines of historical events.

[![Build Status](https://github.com/darthbeep/historical-timelines/workflows/Build%20Status/badge.svg?branch=main)](https://github.com/darthbeep/historical-timelines/actions)
[![codecov](https://codecov.io/gh/darthbeep/historical-timelines/branch/main/graph/badge.svg)](https://codecov.io/gh/darthbeep/historical-timelines)
[![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![GitHub issues](https://img.shields.io/github/issues/darthbeep/historical-timelines)](https://github.com/darthbeep/historical-timelines/issues)
[![PyPI](https://img.shields.io/pypi/v/historical_timelines)](https://pypi.org/project/historical-timelines/)
[![Documentation Status](https://readthedocs.org/projects/historical-timelines/badge/?version=latest)](https://historical-timelines.readthedocs.io/en/latest/?badge=latest)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/darthbeep/historical-timelines/HEAD?labpath=docs%2Fbinder%2Ftutorial.ipynb)

## Overview

historical-timelines is a python package for creating nice looking timelines, specifically with historical data in mind. historical-timelines uses [bokeh](https://bokeh.org/) to create images.

## Install

Install with `pip install historical_timelines`

## Quick start

First, you'll need to import the `HistoricalTimeline` object.

```python
from historical_timelines import HistoricalTimeline
```

Then, you need to populate it. Here's how to populate and display a random timeline:

```python
from historical_timelines import HistoricalTimeline

timeline = HistoricalTimeline("Random Timeline")
timeline.populate_random_timeline()
timeline.render_timeline("timeline.html")
```

This will produce something that looks like this:

![Sample timeline](docs/source/_static/random_timeline.png)

If you have a csv that you want to convert to a timeline, you can do that too. Suppose you have a csv with the path `timeline.csv`, and five columns entitled `Name`, `Description`, `Label`, `Start`, and `End`. It would be imported like this.

```python
from historical_timelines import HistoricalTimeline

timeline = HistoricalTimeline("Timeline from my csv")
timeline_json = HistoricalTimeline.json_from_csv(
    "timeline.csv",
    "Name",
    "Description",
    "Label",
    "Start",
    "End",
)

timeline.populate_timeline_from_dict(timeline_json)
timeline.render_timeline("timeline.html")
```

## Documentation

The documentation can be found [here](https://historical-timelines.readthedocs.io/en/latest/).

A jupyter tutorial can be found [here](https://mybinder.org/v2/gh/darthbeep/historical-timelines/HEAD?labpath=docs%2Fbinder%2Ftutorial.ipynb).