This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Simple Python configuration file management.

Confirm validates a configuration file (.INI or YAML format) against a YAML configuration schema.

Installation

$ pip install confirm

Example schema file

"system":
    "name":
        "required": true
        "description": "Name of the system associated with the server."
        "type": "str"
"http_server":
    "listen":
        "required": true
        "type": "str"
        "description": "Listening address of the HTTP server."
        "default": "localhost"
    "port":
        "required": true
        "type": "int"
        "default": 8088
        "description": "Port of the HTTP server."
"threading":
    "initial_pool_size":
        "description": "Initial number of threads in the thread pool."
        "type": "int"
        "default": 10
    "maximum_pool_size":
        "description": "Maximum number of threads in the thread pool."
        "type": "int"
        "default": 100
        "deprecated": true

Usage

$ confirm validate examples/confirm.yaml project.conf
Error   : Missing required section system.
Error   : Missing required section http_server.
Warning : Deprecated option maximum_pool_size is present in section threading!

Confirm can also be used for validation as a Python library:

from confirm.validator import validator_from_config_file
...

  result = validator_from_config_file(config_file_path, schema_file_path)
  result.validate()
  print(result.is_valid())

License

MIT License.

Release History

Release History

0.1.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
confirm-0.1.3.tar.gz (5.9 kB) Copy SHA256 Checksum SHA256 Source Mar 22, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting