semvec/pypi-packages huggingface dataset:
epochis 1.1.2
A CLI to convert offsets from epoch to human readable dates
Requires Python: >=3.7

# epochis

A CLI to convert offsets from epoch to human readable dates

# Usage
```bash
$ epochis --help
Usage
	epochis {date}{unit}
Example
	epochis 604m
Supported Units
	m:  months since epoch
	d:  days since epoch
	s:  seconds since epoch
	ms: milliseconds since epoch
```

## Examples

```bash
# months since epoch
$ epochis 604m
2020-05

# days since epoch
$ epochis 18409d
2020-05-26

# seconds since epoch
$ epochis 1590537600s
2020-05-26 00:00:00

# milliseconds since epoch
$ epochis 1590537600ms
2020-05-26 00:00:00.000
```

# Timezone support
All dates are in UTC. Timezone support may be added in the future.

# Why doesn't this use third-party libraries?
There are plenty of libraries to choose from for functionality such as CLI args parsing so why didn't I use them?
This project is just for fun so why not? I like to practice by writing functionality from scratch.

# Dev Notes
To install locally as standalone CLI
```
python setup.py install
```

To upload to pypi
```
python setup.py sdist
twine upload dist/*
```

To run unit tests
```
python -m unittest
```
aiopyql 0.359
A fast and easy-to-use asyncio ORM(Object-relational Mapper) for performing C.R.U.D. ops within RBDMS tables using python
Requires Python: >=3.7, <4

![](./images/logo.png)

# 
<h3>
A fast and easy-to-use asyncio ORM(Object-relational Mapper) for performing C.R.U.D. ops within RBDMS tables using python. 
</h3>

[![Documentation Status](https://readthedocs.org/projects/aiopyql/badge/?version=latest)](https://aiopyql.readthedocs.io/en/latest/?badge=latest)
 [![PyPI version](https://badge.fury.io/py/aiopyql.svg)](https://pypi.org/project/aiopyql/)

#
## Key Features
- asyncio ready 
- database / table query cache
- SQL-like query syntax
- Automatic schema discovery / migrations

#
## Documentation
[https://aiopyql.readthedocs.io/](https://aiopyql.readthedocs.io/)

#

### Instalation
```bash
$ virtualenv -p python3.7 aiopyql-env

$ source aiopyql-env/bin/activate
```
```bash
(aiopyql-env)$ pip install aiopyql
```
#
### Compatable Databases
- postgres - via [asyncpg](https://github.com/MagicStack/asyncpg)
- mysql - via [aiomysql](https://github.com/aio-libs/aiomysql)
- sqlite - via [aiosqlite](https://github.com/omnilib/aiosqlite)

#
## Getting Started 
```python
import asyncio
from aiopyql import data

async def main():

    #sqlite connection
    sqlite_db = await data.Database.create(
        database="testdb"
    )

    # create table
    await db.create_table(
        'keystore',
        [
            ('key', str, 'UNIQUE NOT NULL'),
            ('value', str)
        ],
        'key',
        cache_enabled=True
    )

    # insert
    await db.tables['keystore'].insert(
        key='foo',
        value={'bar': 30}
    )

    # update
    await db.tables['keystore'].update(
        value={'bar': 31},
        where={'key': 'foo'}
    )

    # delete
    await db.tables['keystore'].delete(
        where={'key': 'foo'}
    )
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
```
#
## Recipies
See other usage examples in [recipies](https://github.com/codemation/aiopyql/blob/master/recipies).
<br>
- [FastAPI](https://github.com/codemation/aiopyql/blob/master/recipies/fastapi_aiopyql.py)

#
## Postgres

```python
import asyncio
from aiopyql import data

async def main():
    mysql_db = await data.Database.create(
        database='postgres_database',
        user='postgres',
        password='my-secret-pw',
        host='localhost',
        port=5432,
        db_type='postgres'
    )

loop = asyncio.new_event_loop()
loop.run_until_complete(main())
```
#
## Mysql

```python
import asyncio
from aiopyql import data

async def main():
    mysql_db = await data.Database.create(
        database='mysql_database',
        user='mysqluser',
        password='my-secret-pw',
        host='localhost',
        port=3306,
        db_type='mysql'
    )

loop = asyncio.new_event_loop()
loop.run_until_complete(main())
```
#
## Idea / Suggestion / Issue
- Submit an Issue
- Create a Pull request
lutron-homeworks-yozik04 1.0.0
Lutron HomeWorks Series 4 and 8 interface over Serial and Ethernet
Requires Python: >=3.6

# RFK101 Package

Package to connect to Lutron Homeworks Series-4 and Series-8 systems.
The controller is connected by an RS232 port to an Ethernet adaptor (NPort).

# Example:

    from time import sleep
    from pyhomeworks import Homeworks
    
    def callback(msg,data):
        print(msg,data)

    hw = Homeworks( 'host.test.com', 4008, callback )

    # Sleep for 10 seconds waiting for a callback
    sleep(10.)

    # Close the interface
    hw.close()