semvec/pypi-packages huggingface dataset:
poc-bidon 0.0.0
test project

# Testing project do not use

[![Build Status](https://travis-ci.org/4383/poc-bidon.svg?branch=devel)](https://travis-ci.org/4383/poc-bidon)
![PyPI](https://img.shields.io/pypi/v/poc-bidon.svg)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/poc-bidon.svg)
![PyPI - Status](https://img.shields.io/pypi/status/poc-bidon.svg)

## Features
- Nothing

## Install

```shell
$ pip install -U poc-bidon
```
## Usage

```shell
$ bidon
```
spud-diamond 1.3
Model option preprocessor

Diamond  (spud-diamond)
=======================

A model option preprocessor.

Maintained by Dr Adam S. Candy ([http://candylab.org](http://candylab.org "http://candylab.org")) primarily for use with the Shingle Project, see: [http://shingleproject.org](http://shingleproject.org "http://shingleproject.org").
usb_ser_mon 0.0.1
A serial monitor for USB Serial devices
Keywords: usb serial

usb_ser_mon
==============

A serial monitor for USB Serial devices.

usb-ser-mon.py will automatically detect your connected USB Serial device and
print the output from it.

This is similar in functionality to the Arduino serial monitor, except that
usb-ser-mon.py deals with the device disconnects automtically, and will wait
for your device to reconnect.

If you have more than one USB device connected, you can use the -s
option to specify the serial number of the device you wish to connect to,
or use the -n command to specify the device vendor.

Currently, this program only works under linux.

It was tested with the following devices:
  - Teensy 3.1
  - STM32F4DISCOVERY board
  - Prolific USB to Serial adapter

Installation
============
Download or checkout this repository. With a terminal opened in the project directory.
Install using pip:
```
pip install .
```

If you want to edit the files in this directory and use them, install in edit mode:
```
pip install -e .
```

Usage
=====

Use -l to list all of the connected devices.
```
./usb-ser-mon.py -l
````

will show you the currently connected devices, for example:
```
USB Serial Device with vendor 'Teensyduino' serial '21973' found @/dev/ttyACM1
USB Serial Device with vendor 'Prolific_Technology_Inc.' found @/dev/ttyUSB0
USB Serial Device with vendor 'STMicroelectronics' serial '00000000050C' found @/dev/ttyACM0
```

If you want to connect with the STM device (an STM32FDISCOVERY board in this situation), then you might do:
```
./usb-ser-mon.py -n Teensy
```

and then see:
```
USB Serial device with vendor 'Teensyduino' serial '21973' connected @/dev/ttyACM1

>>>
```

In the previous example the Teensy was already connected. If I unplug and replug the Teensy device then I'd see:
```
USB Serial device @ /dev/ttyACM1  disconnected.

Waiting for USB Serial Device with vendor 'Teensy' ...
USB Serial device with vendor 'Teensyduino' serial '21973' connected @/dev/ttyACM1
Done executing '/src/main.py'
Micro Python for Teensy 3.1
Type "help()" for more information.
>>>
```

You only need to use as many characters as are required to uniquely identify a
device, so I could use ```./usb-ser-mon.py -n STM``` to connect to the
Discovery board.

Use Control-X to exit from usb-ser-mon.py.

The ```mk-udev-rules-stm32.sh``` script will create the appropriate udev rules
for the STM32F4 series processors.

The ```mk-udev-rules-pyboard.sh``` script will create the appropriate udev rules
for the MicroPython pyboard.

The ```mk-udev-rules-teensy.sh``` script will create the appropriate udev rules
for the Teensy 3.1 board.
working-calendar 0.0.1
Utility for operate with working days.

# Working Calendar

[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/igorxut/working-calendar/blob/master/LICENSE)
[![PyPi version](https://img.shields.io/pypi/v/working-calendar.svg)](https://test.pypi.org/project/working-calendar/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/working-calendar.svg)](https://pypi.python.org/pypi/working-calendar/)

## Description

Class `WorkingCalendar` is utility for operate with working days.

## Current version

0.0.1 (2018-07-13)

## Installation

```bash
pip install working_calendar
```

## Example

```python
from datetime import date
from working_calendar import WorkingCalendar


if __name__ == '__main__':
    wc = WorkingCalendar()

    holidays = [
        date(2018, 2, 23),
        date(2018, 3, 8),
        date(2018, 3, 9),
    ]
    additional_working_days = [
        date(2018, 3, 10),
    ]
    not_standard_working_day = (date(2018, 3, 10), 240)  # 240 min = 4 hours

    wc.extend_holidays(holidays)
    wc.extend_working_days(additional_working_days)
    wc.update_not_standard_working_day(not_standard_working_day[0], not_standard_working_day[1])

    print(wc.count_working_days_between(date(2018, 3, 1), date(2018, 3, 12)))  # 7 working days
    print(wc.count_working_days_in_year(2018))  # 259 working days
    print(wc.count_working_days_in_month(2018, 2))  # 19 working days

    print(wc.count_working_minutes_between(date(2018, 3, 1), date(2018, 3, 12)))  # 3120 minutes
    print(wc.count_working_minutes_in_year(2018))  # 124080 minutes
    print(wc.count_working_minutes_in_month(2018, 2))  # 9120 minutes

    print(wc.count_working_hours_between(date(2018, 3, 1), date(2018, 3, 12)))  # 52.0 hours
    print(wc.count_working_hours_in_year(2018))  # 2068.0 hours
    print(wc.count_working_hours_in_month(2018, 2))  # 152.0 hours

    print(wc.get_next_working_day(date(2018, 3, 7)))  # 2018-03-10
    print(wc.skip_working_days(date(2018, 3, 10), 10))  # 2018-03-23
```