semvec/pypi-packages huggingface dataset:
brooks-mfc 0.1.4
Python driver for Brooks Instrument mass flow controllers
Requires Python: >=3.6.1,<4.0.0

brooks-mfc
==========

Python driver and command-line tool for [Brooks Instrument mass flow controllers](https://www.brooksinstrument.com/en/products/mass-flow-controllers).

<p align="center">
  <img height="250" src="https://www.brooksinstrument.com/~/media/brooks/images/products/mass%20flow%20controllers/metal%20sealed/gf100/gf100-gf120-gf125-mass-flow-controller-3-491px.png" />
</p>

Installation
============

```
pip install brooks-mfc
```

Usage
=====

This driver uses an undocumented REST API in the devices's web interface for communication.
The compatibility and stability of this interface with all Brooks controllers is not guaranteed.

### Command Line

To test your connection and stream real-time data, use the command-line
interface. You can read the flow rate with:

```
$ brooks-mfc 192.168.1.200
{
    "Customer Flow Totalizer": 0.0,
    "Flow": -0.3,
    "Flow Hours": 1.0,
    "Flow Totalizer": 0.0,
    "Live Setpoint": 0.0,
    "Operational Hours": 50.0,
    "Setpoint": 0.0,
    "Supply Voltage": 22.93,
    "Temperature": 27.11,
    "Valve Position": 0.0
}
```

You can optionally specify a setpoint flow with the set flag:
`brooks-mfc 192.168.1.150 --set 7.5.` The units of the setpoint and return are
specified using the `--units` flag. See `mfc --help` for more.

### Python

This uses Python ≥3.5's async/await syntax to asynchronously communicate with
the mass flow controller. For example:

```python
import asyncio
from brooks_mfc import FlowController

async def get():
    async with FlowController('the-mfc-ip-address') as fc:
        print(await fc.get())

asyncio.run(get())
```

The API that matters is `get`, `set`. Optionally, units can be passed with 
either command. If no units are specified the existing units configured for
the device are used.

```python
>>> await fc.get()
>>> await fc.get('%')
{
    "Customer Flow Totalizer": 0.0,
    "Flow": -0.3,
    "Flow Hours": 1.0,
    "Flow Totalizer": 0.0,
    "Live Setpoint": 0.0,
    "Operational Hours": 50.0,
    "Setpoint": 0.0,
    "Supply Voltage": 22.93,
    "Temperature": 27.11,
    "Valve Position": 0.0
}
```
```python
>>> await fc.set(10)
>>> await fc.set(10, 'SCCM')
```

There's much more that could be set or returned from the flow controllers but 
I haven't had a reason to flesh all the the options out. Feel free to submit an 
issue with requests or a PR.
config-guiosoft 0.1.5
Guiosoft Python Configuration Class
Requires Python: >=3.7

# GS PY Config

Configuration class

![Python package](https://github.com/guionardo/py-config/workflows/Python%20package/badge.svg)
[![codecov](https://codecov.io/gh/guionardo/py-config/branch/develop/graph/badge.svg)](https://codecov.io/gh/guionardo/py-config)


## Usage

Create your configuration class, extending config_guiosoft.ConfigClass

``` python
from config_guiosoft import ConfigClass
from datetime import datetime, time

class Config(ConfigClass):
  STRING_CONF = "DEFAULT VALUE"
  INT_CONF = 10
  FLOAT_CONF = 0.0
  BOOL_CONF = False  
  DATE = date.today()
  DATETIME = datetime.now()

config = Config()
print(config)
>>> __main__.Config(BOOL_CONF:False,DATE:datetime.date(2020, 7, 30),DATETIME:datetime.datetime(2020, 7, 30, 18, 39, 55, 374515),FLOAT_CONF:0.0,INT_CONF:10,STRING_CONF:'DEFAULT VALUE')
```

When this class is instantiated, it loads values from environment variables with same name.
If the variable is undefined, default values will be used.

## Advanced usage

You can use ConfigType for special field behavior.

``` python
from config_guiosoft import ConfigClass, ConfigType
from datetime import datetime, time

class SpecialConfig(ConfigClass):
    STRING_CONF = ConfigType(
        'STRING_CONF', str, 'DEFAULT_STRING', lambda value: len(value) > 1)
    INT_CONF = ConfigType(
        'INT_CONF', int, 100, range(1000))
    FLOAT_CONF = ConfigType(
        "FLOAT_CONF", float, 0.5, [0, 0.1, 0.5, 3.14])
    BOOL_CONF = ConfigType(
        "BOOL_CONF", bool, False)
    DEFAULT_CONF = ConfigType("DEFAULT_CONF")
    DATE = ConfigType(
        "DATE", date, date.today(), lambda value: value <= date.today())
    DATETIME = ConfigType(
        "DATETIME", datetime, datetime.now(),
        lambda value: value <= datetime.now())

# ConfigType constructor

ConfigType(env_name: str, type=str, default=None, validation: callable = None)

```
| Field | Description |
| ----- | ----------- |
| env_name | Environment variable name, string, required |
| type | python type (str, int, float, bool, datetime, date) |
| default | default value (must be compatible with type) |
| validation | callable to validate data|
modernblaseball 0.5.6
An interface for the blaseball API
Requires Python: >=3.6

# this is NOT an endorsement of the music of the band "modern baseball" I am listening to them now and they are not very good. 



## A blaseball API interface. 

### Install via pip:

pip install modernblaseball


### Basic use: 


`from modernblaseball.modern_blaseball import blaseball_api`

`blaseball = blaseball_api()`

`result = blaseball.get_global_events()`

#### or: 

`pyobj = structure(blaseball.get_global_events)`

#### blaseball endpoints will often return a 500 when under load, so you can add failover logic as well: 

`blaseball.failover_500(self.blaseball.get_player_stats, args=self.EXAMPLE_PLAYER)`

#### todo: make all utilities more modular. 
`

### tests: 

`python -m unittest`
dankdb 0.0.3
Easy to use database module

# DankDB - Simple Database
[![](https://img.shields.io/badge/Author-DankSideSparkles-lightgrey?style=plastic)](https://github.com/DankSideSparkles)
[![](https://img.shields.io/github/languages/top/DankSideSparkles/DankDB.svg?style=plastic)](https://github.com/DankSideSparkles/DankDB)
[![](https://img.shields.io/github/v/tag/DankSideSparkles/DankDB?style=plastic)](https://github.com/DankSideSparkles/DankDB/releases)
[![](https://img.shields.io/github/issues/DankSideSparkles/DankDB?style=plastic)](https://github.com/DankSideSparkles/DankDB/issues)

This simple, yet useful module allows the user to create a database for small scale projects; the user can easily add values to the database while simultaneously retrieving values. 


## Features:

â€¢    create_table - Takes in a table name and multiple column names then creates a table.
â€¢    insert_row - Takes in a row of values and adds them into the table.
â€¢    delete_rows - Removes all rows from table.
â€¢    fetch_table - Retrieves all values within the table.
â€¢    export_csv - Export table into a csv file with given table name.
â€¢    read_csv - Prints out all values in table with given table name.
â€¢    close - Closes connection to database.


## How to install

`pip install dankdb`


## How to use

#### Example code

```python
from dankdb import Database

db = Database()
db.create_table('example', 'column1 TEXT', 'column2 TEXT', 'column3 TEXT')
db.insert_row('value1', 'value2', 'value3')
db.insert_row('value4', 'value5', 'value6')

print(db.fetch_table())

db.close()
```


## Feature request

If there is a feature that you would like implemented, open an issue, and I will work on it.
fslvbmparsers 0.0.2
fsl and vbm parsers

# Fslparser 

This package includes fsl parser (FreeSurfer) and vbm parser (NIfTI). 
# How to install
pip install fslvbmparsers
# How to run
import fslvbmparsers \
from fslvbmparsers import parsers \
(X, y) = parsers.fsl_parser(args) \
mask = os.path.join('/computation', mask_directory, mask_file_name) \
(X, y) = parsers.vbm_parser(args, mask)
geofem 0.0.7
Modelagem geofísica direta de campos eletromagnéticos via volumes finitos: MT e MCSEM.
Requires Python: >=3.7

# GEOFEM: 
# Modelagem Geofísica Eletromagnética
![Geofem Image Logo](https://github.com/iisadoramacedo/geofem-master/blob/master/geofem-logo.png)

GEOFEM é um pacote python open-source de modelagem geofísica dos campos eletromagnéticos, via volumes finitos, dos métodos MT e MCSEM. Constitui a primeira parte do pacote MiGEO - em desenvolvimento -, que visa abranger modelagem e inversão eletromagnética.

# Geração de Malha
O gerador de malha em volumes finitos utilizado é do pacote open-source *discretize* que possui as seguintes malhas disponíveis:

  - Malha Tensor
  - Malha Octree

# Modelagem direta: MT

  - Volumes Finitos
  - Modelagem 1D, 2D e 3D
  - Disponível na malha tipo Tensor e Octree
  - Isotrópica (anisotropia em andamento)

# Modelagem direta: MCSEM

  - Volumes Finitos
  - Modelagem 1D, 2D e 3D
  - Disponível na malha tipo Tensor
  - Anisotrópica

# Instalação
Recomendada a criação de um ambiente virtual conda com python > v3.7 para fazer a instalação via pip.
```sh
$ pip install geofem
```



License
----

MIT

[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax)


   [dill]: <https://github.com/joemccann/dillinger>
   [git-repo-url]: <https://github.com/joemccann/dillinger.git>
   [john gruber]: <http://daringfireball.net>
   [df1]: <http://daringfireball.net/projects/markdown/>
   [markdown-it]: <https://github.com/markdown-it/markdown-it>
   [Ace Editor]: <http://ace.ajax.org>
   [node.js]: <http://nodejs.org>
   [Twitter Bootstrap]: <http://twitter.github.com/bootstrap/>
   [jQuery]: <http://jquery.com>
   [@tjholowaychuk]: <http://twitter.com/tjholowaychuk>
   [express]: <http://expressjs.com>
   [AngularJS]: <http://angularjs.org>
   [Gulp]: <http://gulpjs.com>

   [PlDb]: <https://github.com/joemccann/dillinger/tree/master/plugins/dropbox/README.md>
   [PlGh]: <https://github.com/joemccann/dillinger/tree/master/plugins/github/README.md>
   [PlGd]: <https://github.com/joemccann/dillinger/tree/master/plugins/googledrive/README.md>
   [PlOd]: <https://github.com/joemccann/dillinger/tree/master/plugins/onedrive/README.md>
   [PlMe]: <https://github.com/joemccann/dillinger/tree/master/plugins/medium/README.md>
   [PlGa]: <https://github.com/RahulHP/dillinger/blob/master/plugins/googleanalytics/README.md>