semvec/pypi-packages huggingface dataset:
nicfit.py 0.8.7
Common Python utils (App, logging, config, etc.)
License: MIT
Keywords: python,application,cookiecutter,utils

=================
nicfit.py README
=================

|Build Status| |License| |PyPI| |Python versions| |Coverage| |Status|

Basic building blocks for building Python applications.


Features
--------

* Common appplication skeletons (including async) providing common argument
  parsing add-ons and utilities, error handling boiler-plate, and application
  life-cycle hooks. Including intregrated `cookiecutter` that
  suuports updating to future versions with auto-merging.
* Simple command API based on `argparse` and sub-parsers.
* Integrated configuation file (based on configparser) utitiles.
* Logging extras (e.g. verbose level) and command line configuration.
* Free software: MIT license


.. |Build Status| image:: https://travis-ci.org/nicfit/nicfit.py.svg?branch=master
   :target: https://travis-ci.org/nicfit/nicfit.py
   :alt: Build Status
.. |PyPI| image:: https://img.shields.io/pypi/v/nicfit.py.svg
   :target: https://pypi.python.org/pypi/nicfit.py/
   :alt: Latest Version
.. |Python versions| image:: https://img.shields.io/pypi/pyversions/nicfit.py.svg
   :target: https://pypi.python.org/pypi/nicfit.py/
   :alt: Supported Python versions
.. |License| image:: https://img.shields.io/pypi/l/nicfit.py.svg
   :target: https://pypi.python.org/pypi/nicfit.py/
   :alt: License
.. |Status| image:: https://img.shields.io/pypi/status/nicfit.py.svg
   :target: https://pypi.python.org/pypi/nicfit.py/
   :alt: Project Status
.. |Coverage| image:: https://coveralls.io/repos/nicfit/nicfit.py/badge.svg
   :target: https://coveralls.io/r/nicfit/nicfit.py
   :alt: Coverage Status


See the `changelog <https://github.com/nicfit/nicfit.py/blob/master/HISTORY.rst>`_ file for release history and changes.
opentoken 2.2.0
OpenToken support for python.
License: MIT
Requires Python: >=3.5

# opentoken-python

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code-of-conduct.md)

OpenToken support for Python.

A Python implementation of generating and parsing OpenTokens. Much of this implementation is borrowed from [node-opentoken](https://github.com/73rhodes/node-opentoken).

https://tools.ietf.org/html/draft-smith-opentoken-02

## Usage

### Create an opentoken string:

```
from opentoken import OpenToken

otkapi = OpenToken("your_password")
otkapi.create_token([
    ("subject", "foobar"),
    ("key2", "val2")
])
```

### Parse an opentoken string:

```
otkapi = OpenToken("your_password")
otkapi.parse_token("your_base64_encoded_token_string")
```

### OpenToken constructor

`password`: Defaults to None.

`cipher_suite_id`: Defaults to 2. Possible ids are 0 - no encryption, 1 - AES-256, 2 - AES-128, and 3 - 3DES-168.

`token_tolerance`: Defaults to 120 seconds.

`token_lifetime`: Defaults to 300 seconds.

`token_renewal`: Defaults to 12 hours.

## Contributing

Feel free to dive in! [Open an issue](https://github.com/yoonjesung/opentoken-python/issues/new) or submit PRs.