frico-rtc-0.0.2
توضیحات
Python interface to Dallas/Maxim DS series RTCs (and others) using Frico
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | frico-rtc-0.0.2 |
| نام | frico-rtc |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Michael Mangus |
| ایمیل نویسنده | mmangus@gmail.com |
| آدرس صفحه اصلی | https://github.com/mmangus/frico-rtc |
| آدرس اینترنتی | https://pypi.org/project/frico-rtc/ |
| مجوز | - |
# Frico RTCs
Interface to the Dallas/Maxim DS-series RTC devices using the
[Frico](https://github.com/mmangus/frico) framework. Currently
supports the DS3231/MAX31328, with the DS1307 and DS1337 to come,
among others.
## Installation
You can download and install the package via pip:
```shell
python3 -m pip install frico-rtc
```
To contribute, use the provided Makefile to set up a development
environment:
```shell
git clone git@github.com:mmangus/frico-rtc.git &&\
cd frico-rtc &&\
make
```
Run `make test` to validate changes (or use the commit hooks).
## Usage
```python
from datetime import datetime
from frico_rtc.devices import DS3231
rtc = DS3231()
# read time from RTC
print(rtc.clock)
# set time on RTC
rtc.clock = datetime.now()
# check alarm config
print(rtc.alarm1config)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.0.5 | frico |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl frico-rtc-0.0.2:
pip install frico-rtc-0.0.2.whl
نصب پکیج tar.gz frico-rtc-0.0.2:
pip install frico-rtc-0.0.2.tar.gz