semvec/pypi-packages huggingface dataset:
bconfig 2.0.0b3
Blueprints for configurations

# **bconfig** (Blueprint Configuration)

## Example
```python
import bconfig

example_config_blueprint = bconfig.Blueprint({
    'example_int': bconfig.Field(int, options=[122, 123, 124]),
    'example_sub_config': {
        'foo': bconfig.Field(float)
    }
})

example_config = example_config_blueprint.parse({
    'example_int': '123',
    'example_sub_config': {
        'foo': '1.23'
    }
})

print(example_config['example_int'] + 1) # 124
print(example_config['example_sub_config']['foo'] + 0.01) # 1.24
```

## To Do
- [x] Example code
- [x] Unspecified parse functions
- [x] Unspecified expected types
- [ ] Lists
- [x] Options (`List[Any]` or `Callable[[Any], bool]`)
- [ ] Add dict methods (keys, \_\_getitem\_\_, etc) to Blueprint
- [x] Exceptions `ConfigError`, `ParseError`, `RequiredError`, and `OptionError`
- [x] Remove namespaces
laapyCore 0.0.3
core utils

# different utils and tools for projects

collecting python modules into library.

needs VTK
```bash
brew install vtk
```

## install from pypi

```bash

pip install laapyCore

```

## install from source

to work on project install source locally, activate venv and run (if mac run zsh version):

```bash

pip install -e .[dev]

```

```zsh

pip install -e '.[dev]'

```

## use

```python

from working_tools import tet

```

## test setup state

```zsh
python setup.py sdist
```


## create manifest

```zsh

check-manifest --create
git add MANIFEST.in

```

## build to upload

```bash
python setup.py bdist_wheel sdist

twine upload dist/*
```
BMI160-i2c 0.6
A I2C driver library to use the BMI160 sensor (acclerometer/gyro) with python on a raspberrypi
Requires Python: >=3.6
Keywords: python lefuturiste driver BMI160 acclerometer gyroscope gyro BMI bosch sensortech smbus2 sensor library i2c

# BMI160-i2c

I2C library to use the Inertial Mesurment Unit BMI160. Heavily inspired on @serioeseGmbH code [serioeseGmbH/BMI160](https://github.com/serioeseGmbH/BMI160), in fact I just adapted his code.

This library was tested successfully on a Raspberry Pi 3 B

## Installation

The package is [available on pypi.org](https://pypi.org/project/BMI160-i2c).

You can install this package using this command

`python3 -m pip install BMI160-i2c`

**This library require [smbus](https://github.com/kplindegaard/smbus2)**

Install smbus2 using the following command:

`python3 -m pip install smbus2`

## Usage

Wire the breakout board with these lines : GND, 3V3, SAO (to GND), SDA, SCL

Make sure that the device is available at `0x68` or `0x69` i2c address by running this command:

`i2cdetect -y 1`

Example : A little python script to fetch all 6 values from the sensor :

```python
from time import sleep
from BMI160_i2c import Driver

print('Trying to initialize the sensor...')
sensor = Driver(0x68) # change address if needed
print('Initialization done')

while True:
  data = sensor.getMotion6()
  # fetch all gyro and acclerometer values
  print({
    'gx': data[0],
    'gy': data[1],
    'gz': data[2],
    'ax': data[3],
    'ay': data[4],
    'az': data[5]
  })
  sleep(0.1)
```

## Documentation

There is so many method available to do whatever you want to do with a sensor of this kind.

Look at all the methods available [here](https://github.com/lefuturiste/BMI160-i2c/blob/master/BMI160_i2c/__init__.py).

## Credits & Related links

- [hanyazou/BMI160-Arduino](https://github.com/hanyazou/BMI160-Arduino/)
- [serioeseGmbH/BMI160](https://github.com/serioeseGmbH/BMI160)
- [IMU BMI160 Bosch product page](https://www.bosch-sensortec.com/products/motion-sensors/imus/bmi160.html)
- [BMI160 Datasheet](https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmi160-ds000.pdf)
- [smbus2 docs](https://smbus2.readthedocs.io/en/latest/)

## Contributions

Feel free to open a issue or a pull request I will be happy to answer any questions or help you with this library.

You can also use these alternative methods to contact me: 

- Twitter: [@_le_futuriste](https://twitter.com/_le_futuriste)

- Discord: `lefuturiste#5297`

- Discord server: [https://discord.gg/9M4vVsX](https://discord.gg/9M4vVsX)

## Maintenance

- Increment the version used in `setup.py`
- Build the package: `python3 setup.py sdist bdist_wheel`
- Publish the package: `python3 -m twine upload dist/*`
- Enter `__token__` for the username
- Enter `pypi-{....}` for the password
- And tada!