semvec/pypi-packages huggingface dataset:
nadia 0.1.5
Nadia: automatic generation of Marshmallow Schemas for OpenAPI 3 schemas.
License: MIT
Keywords: openapi schema validation

nadia: create marshmallow Schemas OpenAPI 3 objects.
====================================================

|License: MIT| |Build Status| |Documentation Status| |codecov|

**nadia** is a small and lightweight library for creating marshmallow
Schemas from schemas defined in your OpenAPI spec.

Basic usage
-----------

.. code:: python


    import yaml
    import nadia.api

    with open('petstore.yaml') as petstore:        
        data = yaml.load(petstore)
        
    builder = nadia.api.SchemaBuilder.create()
    schema = builder.build(data['components']['schemas']['Pet'])

    valid_pet = {'id': 100, 'name': 'Doggo', 'tag': 'sometag'}
    invalid_pet = {'id': 'foo', 'name': 'Lessie', 'tag': ['tag1', 'tag2']}

    print('Validation errors for Doggo: {}'.format(schema.validate({'content': valid_pet})))
    print('Validation errors for Lessie: {}'.format(schema.validate({'content': invalid_pet})))

Documentation
-------------

Documentation can be found at http://nadia.readthedocs.io/en/latest/

Feature overview
----------------

Currently **nadia** supports all of the OpenAPI 3 data types, except
allOf/anyOf fields. Most of the options like required, nullable, etc.
are also supported.

.. |License: MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg
   :target: https://opensource.org/licenses/MIT
.. |Build Status| image:: https://travis-ci.org/aubergine-developers/nadia.svg?branch=master
   :target: https://travis-ci.org/aubergine-developers/nadia
.. |Documentation Status| image:: https://readthedocs.org/projects/nadia/badge/?version=latest
   :target: http://nadia.readthedocs.io/en/latest/?badge=latest
.. |codecov| image:: https://codecov.io/gh/aubergine-developers/nadia/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/aubergine-developers/nadia
kms-vault 0.3.0
A simple pip installable library for encrypting secrets using the AWS key management service.
License: MIT
Keywords: aws,kms,vault,secrets,encryption,security

# kms-vault

A simple pip installable library for encrypting secrets using the AWS key management service.

## Installation

`pip install kms-vault`

## Usage

* Log into AWS console.
* Create a new IAM user. Or if you already have one make sure to create an access key for that user.
* Stay in the IAM console and on the left there should be a link to `Encryption Keys`.
* Once in the Encryption Keys section create a new key, make note fo the `Alias` you use.
* Add the IAM user as an administrator on the encryption key.
CloeePy-Mongoengine 0.0.0
Mongoengine Plugin for CloeePy Framework
License: MIT
Keywords: mini framework cloee cloeepy mongo mongodb mongoengine

# CloeePy-Mongoengine
Mongoengine Plugin for CloeePy

Configures Mongoengine for use with CloeePy

## Installation

`pip install CloeePy-Mongoengine`

## Configuration

### Configuration Basics
CloeePy-Mongoengine configuration must be placed under `CloeePy.Plugins.cloeepy_mongoengine` in your config file.
The parameters are simply the available Mongoengine connection parameters. For more
information on possible configurations please see [Mongoengine's Documentation](https://mongoengine-odm.readthedocs.io/guide/connecting.html)

```
CloeePy:
  ...
  Plugins:
    cloeepy_mongoengine:
      alias: default
      host: "localhost"
      port: 27017
      name: myDatabase
      username: admin
      password: secret
      authentication_source: admin
      authentication_mechanism: SCRAM-SHA-1
      maxPoolSize: 100
```

### Customize Plugin Namespace

By default, your mongo connection is available on the CloeePy application context as
`app.mongoengine`. Meaning, you do have access to the underlying PyMongo Connection
instance, but you should not need to use this directly.

Optionally you can specify a different namespace by which you access
the mongo connection via `pluginNamespace`.

```
...
Plugins:
  cloeepy_mongoengine:
    pluginNamespace: customMongoengineNS
    alias: default
    host: "localhost"
    port: 27017
    name: myDatabase
    username: admin
    password: secret
    authentication_source: admin
    authentication_mechanism: SCRAM-SHA-1
    maxPoolSize: 100
```

Then, you would access your mongo connection on the application context like so:

```
app = CloeePy()
result = app.customMongoNS.admin.command("isMaster")
app.log.info(result)
```

### Optional Environment Variables

It's best practice NOT to store sensitive data, such as database usernames and passwords,
in plain-text configuration files. Thus, CloeePy-Mongoengine supports configuring your mongo username
and password via environment variables.

You need to set the following:

- Username: `CLOEEPY_MONGOENGINE_USERNAME`
- Password: `CLOEEPY_MONGOENGINE_PASSWORD`

By doing so, you can omit `username` and `password` in your configuration file.


## Usage
See [Mongoengine's Documentation](https://mongoengine-odm.readthedocs.io/guide/connecting.html)
for usage instructions.