semvec/pypi-packages huggingface dataset:
duration-check 1.0.4
Timeout and Duration decorator for python unittest.Testcase

# [Duration Check](https://pypi.org/project/duration-check/)
Working python decorators to check how long function can take to be executed.


## Decorator available
 - `timeout` via `timeout_decorator_builder()`
 - `duration`

## Code example
```python
import sys
import unittest

from duration_check import timeout_decorator_builder

# This CAN NOT be a lambda function because we can't pickle them
def module_getter():
    return sys.modules[__name__]

timeout = timeout_decorator_builder(module_getter)  # This CAN NOT be a lambda function because we can't pickle them

class SuperTaskUnitTest(unittest.TestCase):

    @timeout(2)
    def test_timeout_super_task(self):
        self.assertTrue(my_super_task())
```
## Issues/Bug report or improvement ideas
https://gitlab.com/devolive/pypi-packages/duration-check/-/issues

## License
GNU Lesser General Public License v3 or later (LGPLv3+)
cipher-asymmetric 0.0.5
A Python CLI utility made for file encryption
Requires Python: >=3.8

# Cipher(asymmetric)

## The POG python encryption and decryption CLI utility

Cipher is a python CLI utility for asymmetric file encryption and decryption using the cryptography module.

## Installation and usage

### Windows
```sh
# Installation(pypi)
pip install cipher-asymmetric

# Instalation(git)
pip install git+https://github.com/Programming-geek582/cipher-asymmetric.git

# Usage
cipher or python -m cipher
```

### Linux and mac
```sh
# Installation(pypi)
pip3 install cipher-asymmetric

# Instalation(git)
pip3 install git+https://github.com/Programming-geek582/cipher-asymmetric.git

# Usage
cipher or python3 -m cipher
```

Features:


- File encryption/decryption
- Asymmetric encryption with use of pem files to store the private and public key

*Note: do pip uninstall cipher-symmetric before installing cipher-asymmetric since it might cause a collision between the two libraries*

Happy encrypting!
rabbitmq2psql-as-json 1.0.4
Asynchronous RabbitMQ consumer job library for PostgreSQL
Requires Python: >3.6.*, <4

# rabbitmq2psql-as-json

rabbitmq2psql-as-json is ready to use, basic asynchronous RabbitMQ consumer job library for PostgreSQL. It stops when queue is empty, so it can be useful for cron jobs, unit tests, CI/CD environments and production environments has slow datastream.

## Installation

You can install this library easily with pip.
`pip install rabbitmq2psql-as-json` 

## Usage
### As a library
```py
import os
import asyncio
import logging
from rabbitmq2psql_as_json import consume

if __name__ == '__main__':
    logger = logging.getLogger("rabbitmq2psql-as-json")
    logger.setLevel(os.environ.get('LOG_LEVEL', "DEBUG"))
    handler = logging.StreamHandler()
    handler.setFormatter(
        logging.Formatter(
            os.environ.get('LOG_FORMAT', "%(asctime)s [%(levelname)s] %(name)s: %(message)s")
        )
    )
    logger.addHandler(handler)

    config = {
      "mq_host": os.environ.get('MQ_HOST'),
	  "mq_port": int(os.environ.get('MQ_PORT')), 
	  "mq_vhost": os.environ.get('MQ_VHOST'),
	  "mq_user": os.environ.get('MQ_USER'),
	  "mq_pass": os.environ.get('MQ_PASS'),
	  "mq_queue": os.environ.get('MQ_QUEUE'),
      "mq_exchange": os.environ.get('MQ_EXCHANGE'),
      "mq_routing_key": os.environ.get('MQ_ROUTING_KEY'),
	  "db_host": os.environ.get('DB_HOST'),
	  "db_port": int(os.environ.get('DB_PORT')),
	  "db_user": os.environ.get('DB_USER'),
	  "db_pass": os.environ.get('DB_PASS'),
	  "db_database": os.environ.get('DB_DATABASE') 
    }

    sql_template = """insert into logs (body) values (%s);""" 

    loop = asyncio.get_event_loop()
    loop.run_until_complete(
        consume(
          loop=loop,
          consumer_pool_size=10,
          sql_template=sql_template,
          config=config
        )
    )

loop.close()
```

This library uses [aio_pika](https://aio-pika.readthedocs.io/en/latest/) and [aiopg](https://aiopg.readthedocs.io/en/stable/) packages.

### Standalone
You can also call this library as standalone consumer job command.  Just set required environment variables and run `rabbitmq2psql-as-json`. This usecase perfectly fits when you need run it on cronjobs or kubernetes jobs. 

**Required environment variables:**
- MQ_HOST
- MQ_PORT (optional)
- MQ_VHOST
- MQ_USER
- MQ_PASS
- MQ_QUEUE
- MQ_QUEUE_DURABLE (optional, default value: True)
- MQ_EXCHANGE (Exchange for dead letter queue, aka records with error queue)
- MQ_ROUTING_KEY (Routing key for dead letter queue)
- DB_HOST
- DB_PORT (optional)
- DB_USER
- DB_PASS
- DB_DATABASE
- SQL_TEMPLATE (DB Insert query template. Ex: `insert into logs (body) values (%s);`)
- CONSUMER_POOL_SIZE (optional, default value: 10)
- LOG_LEVEL (Logging level. See: [Python logging module docs](https://docs.python.org/3/library/logging.html#logging-levels))

**Example Kubernetes job:** 
 You can see it to [kube.yaml](kube.yaml)
cma-atlas 0.1.0a3
A dynamic interface with many remote databases of biological data
Requires Python: >=3.10

<p align="center">
  <!--
    <!-- Links to shields.io. Uncomment when needed, if needed.
  <a href="https://github.com/CMA-Lab/Atlas/releases"><img src="https://img.shields.io/github/v/release/CMA-Lab/Atlas?style=flat-square" alt="Releases"/></a>
  <a href="https://pypi.org/project/cma-atlas/"><img src="https://img.shields.io/pypi/v/cma-atlas?style=flat-square" alt="PiPY"/></a>
  <a href="https://github.com/CMA-Lab/Atlas/blob/main/CONTRIBUTING.md"><img src="https://img.shields.io/github/workflow/status/CMA-Lab/Atlas/Tests?label=Tests&style=flat-square" alt="Tests"/></a>
  <a href="https://www.python.org/"><img src="https://img.shields.io/pypi/pyversions/cma-atlas?style=flat-square" alt="Python Version"/></a>
  -->
</p>

<p align="center">
  <img src="./docs/resources/AtlasLogo_WhiteOnBlack_alpha.png" width="350"/>
</p>

Atlas is (will be) an interface to a series of biological databases. With Atlas, you can download and parse the raw data provided by the servers in a machine-readable format of your choosing for further processing. Interfacing with each service's API is (will be) handled by Atlas, so you can just worry about analyzing the data, not retrieving it.

## License

Atlas is licensed under the [MIT](https://opensource.org/licenses/MIT) license.