semvec/pypi-packages huggingface dataset:
weekly-calendar 0.1.2
A simple library to deal with weekly opening hours and other recurrent weekly events

# WeeklyCalendar

A simple library to deal with weekly opening hours and other recurrent weekly events

## Usage
Methods will either return a Boolean or datetime based intervals.
```python
from weekly_calendar import WeeklyCalendar
from datetime import datetime, timedelta

now = datetime.now()
typical_week = WeeklyCalendar(resolution_in_minutes=60)
# typical_week is mapped into a bitmap with a bit representing one hour
assert typical_week.is_idle(now)
typical_week.add_busy_interval(now, now + timedelta(hours=3))
# the date doens't really matter, only the day of the week does
assert typical_week.is_busy(now)
busy_intervals = typical_week.get_busy_intervals(now, now + timedelta(hours=5))
# The result is a list of intervals (start_time, end_time)
idle_intervals = typical_week.get_idle_intervals(now, now + timedelta(hours=5))
# The result is a list of intervals (start_time, end_time)
```

You can also do union and intersection of different `WeeklyCalendar` objects:

```python
from weekly_calendar import WeeklyCalendar

tw_60 = WeeklyCalendar(resolution_in_minutes=60)
tw_30 = WeeklyCalendar(resolution_in_minutes=30)
# resulting objects will have the lowest resolution
tw_union = tw_30 + tw_60
tw_intersection = tw_30 * tw_60
```
You can change resolution of an existing `WeeklyCalendar` object:
```python
from weekly_calendar import WeeklyCalendar

tw_60 = WeeklyCalendar(resolution_in_minutes=60)
tw_60_to_30 = tw_60.copy(resolution_in_minutes=30)
```
Your `WeeklyCalendar` object is serializable:
```python
from weekly_calendar import WeeklyCalendar

tw = WeeklyCalendar()
str_repr = tw.dumps()
tw_loaded = WeeklyCalendar.loads(str_repr)
# checks equal resolution, bitmap, and extra parameters
assert tw == tw_loaded
```
live-server 0.9.9
Serves your pages for development and automatically reloads when changed.
Requires Python: >=3.4

# Live Server

[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)

Serve static files and reload them when they get changed. Great for development!

Inspired by [live-server](https://www.npmjs.com/package/live-server) for Node.

## Install

Install it globally

```
pip install live-server
```

## Use

Start Live Server in a folder with command line by using

```
live-server
```

or give it a path

```
live-server ../static
```

Explore more options like changing port number using

```
live-server --help
```

## Found a bug?

Raise an issue at its [repo](https://www.github.com/ajitid/live_server).
fanumbers 1.0.1
Library to work with Farsi (Persian) numbers

# fanumbers
A Library to work with Farsi(Persian) numbers

## Usages
### to_fa_number
Use this method to convert an integer into a Persian number. You can select encoding, Persian, Arabic or All possibilities (all combinations of Arabic and Persian digits).

```python
from fanumbers import to_fa_number
print(to_fa_number(85))  # returns a str, in Persian digits
print(to_fa_number(75, 'arabic'))  # returns a str, in Arabic digits
print(to_fa_number(2018, 'all'))  # returns a list of strings, all possibilities
```

### from_fa_number
Use this method to convert a number in Persian and Arabic digits to an integer.

```python
from fanumbers import from_fa_number
print(from_fa_number("۸۵۸۵"))  # returns an int, 8585
```

### number_to_words
Use this method to convert int or Arabic/Persian numbers into Persian words.

This method two optional arguments, `ordinal` which is set to False by default and if set to True will return ordinal numbers instead of cardinal. And 
`all_possibilities` which is set to False by default and if set to True, will return a list of all possible writings of the number instead of a single string.

```python
from fanumbers import number_to_words
print(number_to_words(85))  # هشتاد و پنج 
print(number_to_words(7, ordinal=True))  # هفتم
for res in number_to_words(111111111, all_possibilities=True):  # wil return multiple strings
    print(res)
```
sampleproject-nomura 1.2.0
A sample Python project
Keywords: sample setuptools development

# A sample Python project

A sample project that exists as an aid to the [Python Packaging User
Guide][packaging guide]'s [Tutorial on Packaging and Distributing
Projects][distribution tutorial].

This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.

[The source for this project is available here][src].

Most of the configuration for a Python project is done in the `setup.py` file,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.

----

This is the README file for the project.

The file should use UTF-8 encoding and can be written using
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
use]. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.

Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.

[packaging guide]: https://packaging.python.org
[distribution tutorial]: https://packaging.python.org/en/latest/distributing.html
[src]: https://github.com/pypa/sampleproject
[rst]: http://docutils.sourceforge.net/rst.html
[md]: https://tools.ietf.org/html/rfc7764#section-3.5 "CommonMark variant"
[md use]: https://packaging.python.org/specifications/core-metadata/#description-content-type-optional