semvec/pypi-packages huggingface dataset:
cocuni-module 0.2
A Python package for cocuni random numbers generation
License: MIT
Requires Python: >=3.7

# python-module-resources

Import non-python files in a project directory as python namedtuple objects.

If you've ever worked in node, you might be familiar with a language feature which allows you to pull in a json file as an imported module.

```node
import { dataStuff } from 'myProjectResources/jsonFiles'

dataStuff.contents === "A rich javascript object"
```

With `module_resources`, you can achieve something similar in python.

```py
from my_project_resources.json_files import data_stuff

data_stuff.contents == 'A python namedtuple instance'
```
## Caveats

There are some caveats to be aware of.

#### Valid vs. invalid namedtuple field names

```py
>>> from module_resources.examples.json import logging_config
>>> logging_config.loggers.__main__
```
```
git checkout master
git pull origin master
# examples of preparing a new tag for release
make tag-patch # also accepts: tag-minor, tag-major
git push origin --tags
```
pii-security 1.0.2
PII Security
License: MIT
Keywords: PII,AES,Security

pii\_security - PII Security
===========================================================

Secures Personally Identifiable Information using AES (128/256 bit) key encryption.


Overview
--------

The ``pii_security`` was written to help securing sensitive information.

Usage
-----

.. code:: sh

    from pii_security.pii_security import PIISecurity

    secret_128bit_key = '1234567812345678'

    ps = PIISecurity(secret_128bit_key)
  
    # Anonymize phone number (split country code prefix and phone number, encryptes separately).
    # Ignores '+' sign prefix.
    (enc_code, enc_number) = ps.anonymize_phone_number('+639171230000')
  
    print(enc_code)    # XVqtVgFGyFGG4LAsR3OinA==
    print(enc_number)  # K/uURi3ZioVMuHnWXgNFgA==
    
    assert ps.decrypt(enc_code)   == '63'         # True
    assert ps.decrypt(enc_number) == '9171230000' # True
    
    
    # Encrypt/Decrypt
    encrypted = ps.encrypt('John Doe')
    
    print(encrypted)   # VQd0JvSY8PTsszHEURT8xw==
    
    decrypted = ps.decrypt(encrypted)
    
    print(decrypted)   # John Doe

License
-------

MIT License

Copyright (c) 2021 Jay Milagroso

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.