semvec/pypi-packages huggingface dataset:
alignme 0.1.0
Alignment Tool based on Biopython
License: MIT
Requires Python: >=3.8.0,<4.0.0

alignme
===========================

|PyPI| |Python Version| |License| |Read the Docs| |Build| |Tests| |Codecov| |pre-commit| |Black|

.. |PyPI| image:: https://img.shields.io/pypi/v/alignme.svg
   :target: https://pypi.org/project/alignme/
   :alt: PyPI
.. |Python Version| image:: https://img.shields.io/pypi/pyversions/alignme
   :target: https://pypi.org/project/alignme
   :alt: Python Version
.. |License| image:: https://img.shields.io/github/license/wxicu/alignme
   :target: https://opensource.org/licenses/MIT
   :alt: License
.. |Read the Docs| image:: https://img.shields.io/readthedocs/alignme/latest.svg?label=Read%20the%20Docs
   :target: https://alignme.readthedocs.io/
   :alt: Read the documentation at https://alignme.readthedocs.io/
.. |Build| image:: https://github.com/wxicu/alignme/workflows/Build%20alignme%20Package/badge.svg
   :target: https://github.com/wxicu/alignme/actions?workflow=Package
   :alt: Build Package Status
.. |Tests| image:: https://github.com/wxicu/alignme/workflows/Run%20alignme%20Tests/badge.svg
   :target: https://github.com/wxicu/alignme/actions?workflow=Tests
   :alt: Run Tests Status
.. |Codecov| image:: https://codecov.io/gh/wxicu/alignme/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/wxicu/alignme
   :alt: Codecov
.. |pre-commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
   :target: https://github.com/pre-commit/pre-commit
   :alt: pre-commit
.. |Black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Black


Features
--------

* TODO


Installation
------------

You can install *alignme* via pip_ from PyPI_:

.. code:: console

   $ pip install alignme


Usage
-----

Please see the `Command-line Reference <Usage_>`_ for details.


Credits
-------

This package was created with cookietemple_ using Cookiecutter_ based on Hypermodern_Python_Cookiecutter_.

.. _cookietemple: https://cookietemple.com
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _PyPI: https://pypi.org/
.. _Hypermodern_Python_Cookiecutter: https://github.com/cjolowicz/cookiecutter-hypermodern-python
.. _pip: https://pip.pypa.io/
.. _Usage: https://alignme.readthedocs.io/en/latest/usage.html
textbytesencoder 0.1.13
Module encoding and encrypting text by key
License: MIT
Requires Python: >=3.8,<4.0

# TextBytesEncoder
Module encoding and encrypting text by key
## Usage example
```python
from textbytesencoder import Encoder

encoder = Encoder(key=None, save_key=False)  # key: Optional[bytes] = None, save_key: Optional[bool] = False
print(encoder.encrypt(text))  # type(text) == str
print(encoder.decrypt(text))  # type(text) == bytes
```
During initialization, you can specify the optional `key` parameter (key, type and purpose see below) and the optional `save_key` parameter (saves the key to a separate file)
## Parameters
Parameter `key` of type bytes, generated using the `Fernet.generate_key()` function 
or using the `base64.urlsafe_b64encode(os.urandom(32))` function used to encode or decode text.
```python
print(encoder.key)
```

```python
encoder.key = b"key"  # key = Fernet.generate_key() or base64.urlsafe_b64encode(os.urandom(32))
```