semvec/pypi-packages huggingface dataset:
consulta-gob 1.0.0
Packete para conultar info relacionada con CURP
License: MIT

# Consulta gob

Un paquete de Python que permite obtener informaciÃ³n de manera rÃ¡pida y automatizable

## Como usar

```python
import consulta-gob
consulta-gob.consulta_CURP("CURP A CONSULTAR", "TU TOKEN DE API")
```
malekbasiccalculator 0.0.1
A very basic calculator
License: MIT
Keywords: calculator

This very simple calculator Flask application that takes two number then either:
 * add
 * substruct
 * multiply
 * divise

Api endpoints: /add/{number1}/{number2}, /subs/{number1}/{number2}, /multiply/{number1}/{number2}, /divise/{number1}/{number2}

Change Log

===============================
0.0.1 (07/06/2020)
===============================
- First release
busm 0.9.5
Help you get stdout of function execution through Email, Telegram and Line Notify.
License: MIT
Requires Python: >=3.5

The package busm means bring up Samuel. It's allusion comes from Holy Bible 1 Samuel 28:11.
It help you find abnormal situations in a background process.

There are several function decorators and logging handlers inside.
These tools can send message of abnormal situations through Email, Telegram or Line Notify.

套件 busm 是 "召喚撒母耳" 的意思，典故出自聖經撒母耳記上 28 章第 11 節，其實就是觀落陰的意思。
這套件可以幫你找出背景作業的異常狀況。

裡面有一些 function decorators 和 logging handlers, 用這些工具可以把異常狀況透過
Email, Telegram, Line Notify 這些方式送出去。

### Quick Start

First, install the package.

```bash
pip install busm
```

Then add decorators before functions you'd like to monitor.

```python
import busm

@busm.through_smtp
def foo_email():
    print('It sucks!')

@busm.through_telegram
def foo_telegram():
    print('Segmentation fault.')

@busm.through_line
def foo_line():
    print('Stack overflow.')

if __name__ == '__main__':
    foo_email()
    foo_telegram()
    foo_line()
```

Run your python code.

```bash
python foo.py
```

You must see the following message,
and a config file will be generated in HOME directory.

```
-----------------------------------------------------------------
  Please change fundog config file (~/.busm.json) to enable.
-----------------------------------------------------------------
```

Edit this config file ~/.busm.json to fit for you.

```
{
  "smtp": {
    "host": "smtp.gmail.com",
    "port": 587,
    "user": "someone",
    "pass": "********",
    "from_name": "Foo",
    "from_email": "someone@gmail.com",
    "to_name": "Master",
    "to_email": "someone@gmail.com"
  },
  "telegram": {
    "token": "123456789:-----------------------------------",
    "master": "123456789"
  },
  "line-notify": {
    "token": ""
  }
}
```

Run your python code again.

```bash
python foo.py
```

Tada! You can preview screenshots [here](https://github.com/virus-warnning/busm/wiki).
loggerholder 1.0.2
logger holder
License: MIT
Requires Python: >=3.0.0
Keywords: loggerholder,logger,holder,log

logger holder

```pycon
>>> import logging
>>> import os
>>> SELFDIR = os.path.dirname(os.path.abspath('.'))  # or : SELFDIR = os.path.dirname(os.path.abspath(__file__))
>>> PROJECTDIR = os.path.dirname(SELFDIR)
>>> 
>>> from loggerholder import LoggerHolder
>>> logargs = ('logs/app.log', 'h', '%(asctime)s %(process)d %(thread)d %(levelname)s: %(message)s', logging.DEBUG, PROJECTDIR)
>>> logger = LoggerHolder.holded(logargs)
>>> print(logger)
>>> 
```

---------------------------------------------------------------------
confselector 1.0.1
config selector
License: MIT
Requires Python: >=3.0.0
Keywords: confselector,conf,config,selector

config selector

```pycon
>>> import os
>>> SELFDIR = os.path.dirname(os.path.abspath('.'))  # or : SELFDIR = os.path.dirname(os.path.abspath(__file__))
>>> PROJECTDIR = os.path.dirname(SELFDIR)
>>> 
>>> from confselector import ConfSelector
>>> ConfSelector.configure([PROJECTDIR, os.path.join(PROJECTDIR, 'config'), os.path.join(PROJECTDIR, 'conf'), SELFDIR, ])
>>> 
>>> pyfile, configobj = ConfSelector.selected('-dev')
>>> print(pyfile, configobj)
>>> 
>>> pyfile, configobj = ConfSelector.selected('-prod')
>>> print(pyfile, configobj)
>>> 
>>> pyfile, configobj = ConfSelector.selected('')
>>> print(pyfile, configobj)
>>> 
```

---------------------------------------------------------------------