Metadata-Version: 2.2
Name: ndnsecure
Version: 1.0.2
Summary: python interface for ndnsecure
Author-email: Jordan Tardif <jordan@dreamhost.com>
License: Apache Software License 2.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: sqlalchemy
Requires-Dist: pymysql
Requires-Dist: arrow
Requires-Dist: hvac

# python-ndnsecure

python interface for ndnsecure credentials


# Example DB

```
 from ndnsecure.db import NdnSecureDb
 db = NdnSecureDb('dreamhost')

 # get db credentials in a dictionary
 db_dict = db.get_dict()
 print(db_dict)
    {'host': '127.0.0.1', 'password': 'yourpassword', 'db': 'dreamhost', 'user': 'youruser'}

 # get db credentials in sql alchemy connection string
 sql_alc_uri = db.get_sqlalchemy_conn_uri()
 print(sql_alc_uri)
    mysql+pymysql://youruser:yourpassword@127.0.0.1/dreamhost

```
