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

Allows you set or override local settings into your project

  • Free software: GPL V3 license

Installation

pip install plaf

Documentation

Plaf today gives you two methods:

To import a file just do:

>>> import plaf
>>> module = plaf.import_python_file('/path/to/my/pythonfile.py')
>>> module.something_defined_at_pythonfile
True

To update your settings, you have to give plaf two arguments:

  • filepath – Full path to a python file you want to import settings from
  • context – A dict with settings you want to be updated
>>> plaf.update_settings('/opt/project/dev/settings.py', locals())

I usually use at Django projects plaf.update_settings to override settings, instead of doing:

>>> try:
...     from local_settings.py import *
... except:
...     pass

I just prefer to use plaf.update_settings like:

>>> import plaf
>>> plaf.update_settings('/opt/project/devel/settings.py', locals())

Changelog

0.1.0 (2015-01-30)

  • First release on PyPI.
Release History

Release History

0.1.8

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.7

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
plaf-0.1.8-py2.py3-none-any.whl (5.1 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Jun 18, 2015
plaf-0.1.8.tar.gz (8.2 kB) Copy SHA256 Checksum SHA256 Source Jun 18, 2015

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