semvec/pypi-packages huggingface dataset:
instcr 0.1.0
Python WEB Scraper for Costa Rica institutions public data
License: MIT
Requires Python: >=3.7.0


# InstitucionesCR Scraper

[Spanish README/ README en español](https://github.com/jeancahu/institucionesCR/blob/main/README_es.md)

Python Scraper to retrieve important data published by institutions.
Supported institutions:

- BCCR, Central Bank of Costa Rica (dollar exchange rate)
- RECOPE (Fuel prices at stations and terminals)

The daily updated values are useful in automated processes; unfortunately,
many times institutions do not prioritize enabling APIs for easy value retrieval
by programs. For this reason, I have created this small project to fetch
these data from the interfaces previously designed for humans.

## Install

    pip install instcr

## Usage

### Get fuel price information from RECOPE

```python
from instcr import Recope

recope = Recope()

recope.print_data()

print(f"\nPrecio del diesel: {recope.table_estaciones['diesel_50']['precio_litro_total']}")

## ## Much later:

recope.update()

## Diesel price at stations
recope.table_estaciones['diesel_50']['precio_litro_total']

## Diesel price at terminals
recope.table_terminales['diesel_50']['precio_litro_total']

# recope.table_estaciones.keys() Shows all available fuels at stations
```

### Exchange rate from the Central Bank of Costa Rica

```python
from instcr import Bccr

bccr = Bccr()

## Show both buy and sell tables
bccr.print_data()

## Print today's information (date= datetime to specify a different date)
print(f"\n Today sell dollar price: {bccr.dollar('sell')}")
print(f"\n Today buy dollar price: {bccr.dollar('buy')}")
```
batsoc 0.9.3
Library for estimating state of charge from battery cell voltage
License: MIT
Requires Python: >=3.7
Keywords: data,mapping

# batsoc - State of Charge (Battery)

Got a cell voltage and would like to know how much charge is left? 
batsoc to the rescue!

## Installation

```bash
pip install batsoc
```

## Accuracy
Measuring state of charge based on voltage alone is not terribly
accurate. The measured voltage depends on multiple factors besides
the state of charge: temperature and load affect matters as well. 


## Usage

```python
from batsoc import soc, BatteryType
soc(BatteryType.ALKALINE, 1.3)
```

will output 0.633 indicating 63.3% state of charge.

## Supported batteries
### ALKALINE
Any generic 1.5V alkaline battery under low load. 
The curve is defined for 0.8 - 1.6 volts.

### LI_ION
Any generic lithium-ion battery with a nominal voltage of 3.7 or 3.8. 
The curve is defined for 3.0 - 4.2 volts.

### CR2032
A 3V lithium coin cell battery under very low load.
The curve is defined for 2.0 - 3.0 volts.
django-server-autoreload 1.4.6
Python Package for Reloading Django Server at some specific time once every day,Note: this package only works in django installed in windows os.
License: MIT
Requires Python: >=3.6.0




# At the  top of your setting.py file in django add :

from django_server_autoreload.Django_AutoReloader import Autoreload_Django    


# At the End of settings.py file add the bellow code.
# Avoid using keybordshort shortcuts Ctrl +s  or Ctrl + c  when using this package ,this will make the server stop responding to requests because this module kills #and creates anew dajngo  main thread for you. 

#You can reload django server as many times as you wish only use a diffrent object each time.
#Reload django server at this time:
re_run=Autoreload_Django(reload_time="03:00",app_url="127.0.0.1:8080")   
re_run.refresh.start() 

#Reload django server at this time:

run=Autoreload_Django(reload_time="00:00",app_url="127.0.0.1:8080")   
run.refresh.start()