Connexion Sqlalchemy Utils Documentation

Size: px
Start display at page:

Download "Connexion Sqlalchemy Utils Documentation"

Transcription

1 Connexion Sqlalchemy Utils Documentation Release Michael Housh Apr 17, 2017

2

3 Contents 1 Connexion Sqlalchemy Utils Features Running example api in Docker Credits Installation Stable release From sources Usage Connexion Sqlalchemy Utils Example API BaseMixinABC BaseMixin Decorators CRUD Contributing Types of Contributions Get Started! Pull Request Guidelines Tips Credits Development Lead Contributors History ( ) Indices and tables 27 i

4 ii

5 Contents: Contents 1

6 2 Contents

7 CHAPTER 1 Connexion Sqlalchemy Utils Sqlalchemy, Postgres, Connexion utility Documentation: Features Helps create REST api s quickly with Connexion, Sqlalchemy, and Postgresql Running example api in Docker By cloning the repo: git clone cd./connexion_sql_utils docker-compose up Without cloning the repo: docker pull mhoush/connexion_sql_utils docker pull postgres/alpine docker run -d --name some_postgres \ -e POSTGRES_PASSWORD=postgres \ postgres:alpine docker run --rm -it --link some_postgres:postgres \ -e DB_HOST=postgres \ -e DB_PASSWORD=postgres \ -p "8080:8080" \ mhoush/connexion_sql_utils Check out the example api at 3

8 Credits This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template. 4 Chapter 1. Connexion Sqlalchemy Utils

9 CHAPTER 2 Installation Stable release To install Connexion Sqlalchemy Utils, run this command in your terminal: $ pip install connexion_sql_utils This is the preferred method to install Connexion Sqlalchemy Utils, as it will always install the most recent stable release. If you don t have pip installed, this Python installation guide can guide you through the process. From sources The sources for Connexion Sqlalchemy Utils can be downloaded from the Github repo. You can either clone the public repository: $ git clone git://github.com/m-housh/connexion_sql_utils Or download the tarball: $ curl -OL Once you have a copy of the source, you can install it with: $ python setup.py install 5

10 6 Chapter 2. Installation

11 CHAPTER 3 Usage To use Connexion Sqlalchemy Utils in a project: import connexion_sql_utils This package is meant to be used in conjunction with Connexion which utilizes an API first approach to building REST API s for micro-services. See also: This package has an Sqlalchemy Mixin used with Postgresql to create a declarative base, which can then be used to declare your database models. This package also has a set of utility functions that when combined with functools.partial can be used to quickly create the routes for the api. Connexion Sqlalchemy Utils Example By cloning the repo: git clone cd./connexion_sql_utils docker-compose up Without cloning the repo: docker pull mhoush/connexion_sql_utils docker pull postgres/alpine docker run -d --name some_postgres \ -e POSTGRES_PASSWORD=postgres \ postgres:alpine docker run --rm -it --link some_postgres:postgres \ -e DB_HOST=postgres \ -e DB_PASSWORD=postgres \ -p "8080:8080" \ mhoush/connexion_sql_utils 7

12 Check out the example api at app.py: #!/usr/bin/env python import os from functools import partial import logging import connexion from sqlalchemy import Column, String, Numeric, create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from connexion_sql_utils import BaseMixin, to_json, event_func, dump_method from connexion_sql_utils import crud # Most of this would typically be in a different module, but since # this is just an example, I'm sticking it all into this module. DB_USER = os.environ.get('db_user', 'postgres') DB_PASSWORD = os.environ.get('db_password', 'postgres') DB_HOST = os.environ.get('db_host', 'localhost') DB_PORT = os.environ.get('db_port', 5432) DB_NAME = os.environ.get('db_name', 'postgres') DB_URI = 'postgres+psycopg2://{user}:{password}@{host}:{port}/{db}'.format( user=db_user, password=db_password, host=db_host, port=db_port, db=db_name ) engine = create_engine(db_uri) Session = scoped_session( sessionmaker(autocommit=false, autoflush=false, bind=engine, expire_on_commit=false) ) # The only method required to complete the mixin is to add a staticmethod # that should return a session. This is used in the queries. class MyBase(BaseMixin): # give the models an access to a def session_maker(): return Session() # By attaching the ``session_maker`` method to the class we now create a # ``declarative_base`` to be used. The ``BaseMixin`` class declares an # ``id`` column, that is ``postgresql.uuid``. It also has an declared attr # for the tablename. If you would to override these, they can be declared 8 Chapter 3. Usage

13 # when create your database model DbModel = declarative_base(cls=mybase) class Foo(DbModel): bar = Column(String(40), nullable=false) baz = Column(Numeric, nullable=true) # a method to be called to help in the conversion to def convert_decimal(self, val): if val is not None: logging.debug('converting baz...') return float(val) return val # add a custom value when dumping to def add_bang(self, vals): logging.debug('adding bang') vals['bang'] = 'boom' return vals # attach an event listener to ensure ``bar`` is only saved # as a lower 'before_update') def lower_baz(mapper, connection, target): target.bar = str(target.bar).lower() # CRUD methods used in ``opertionid`` field of ``swagger.yml`` # connexion needs named parameters in it's operitionid field, so you must # declare them in the partial in order to work correctly. get_foo = partial(crud.get, Foo, limit=none, bar=none) post_foo = partial(crud.post, Foo, foo=none) get_foo_id = partial(crud.get_id, Foo, foo_id=none) put_foo = partial(crud.put, Foo, foo_id=none, foo_data=none) delete_foo = partial(crud.delete, Foo, foo_id=none) app = connexion.app( name ) app.add_api('swagger.yml') if name == ' main ': port = os.environ.get('app_port', 8080) DbModel.metadata.create_all(bind=engine) app.run(debug=true, port=int(port)) swagger.yml: swagger: '2.0' info: title: Example Foo api version: '0.1' consumes: 3.1. Connexion Sqlalchemy Utils Example 9

14 - application/json produces: - application/json paths: /foo: get: tags: [Foo] operationid: app.get_foo summary: Get all the foo parameters: - name: limit in: query type: integer minimum: 0 default: name: bar in: query type: string pattern: "^[a-za-z0-9-_]*$" responses: 200: description: Return the foo's schema: type: array items: $ref: '#/definitions/foo' post: tags: [Foo] operationid: app.post_foo summary: Create a new foo. parameters: - name: foo in: body schema: $ref: '#/definitions/foo' responses: 201: description: Foo created schema: $ref: '#/definitions/foo' 400: description: Failed to save foo /foo/{foo_id}: get: tags: [Foo] operationid: app.get_foo_id summary: Get a single foo parameters: - $ref: '#/parameters/foo_id' responses: 200: description: Return the foo schema: $ref: '#/definitions/foo' 404: description: Foo does not exist put: 10 Chapter 3. Usage

15 tags: [Foo] operationid: app.put_foo summary: Update a foo parameters: - $ref: '#/parameters/foo_id' - name: foo_data in: body schema: $ref: '#/definitions/foo' responses: 200: description: Updated foo schema: $ref: '#/definitions/foo' 400: description: Failed due to invalid data 404: description: Foo does not exist delete: tags: [Foo] operationid: app.delete_foo summary: Delete a foo parameters: - $ref: '#/parameters/foo_id' responses: 204: description: Foo was deleted 404: description: Foo does not exist parameters: foo_id: name: foo_id description: Foo's unique identifier type: string in: path required: true pattern: "^[a-za-z0-9-]+$" definitions: Foo: type: object required: - bar properties: id: type: string description: Unique identifier example: 44a288c1-829c-410d-9a6e-1fce1beb62d4 readonly: true bar: type: string description: The bar attribute maxlength: 40 example: 'some bar' baz: type: number description: The number of baz 3.1. Connexion Sqlalchemy Utils Example 11

16 minimum: 1 example: 10 bang: type: string description: A custom read-only variable added to every Foo readonly: true 12 Chapter 3. Usage

17 CHAPTER 4 API The public interface to connexion_sql_utils. BaseMixinABC base_mixin_abc.py This module contains an abc class that can be used to check that the correct interface is defined to use the crud methods. Nothing actually inherits from this class as it breaks when making an sqlalchemy.ext.declarative:declarative_base, but it is helpful for issubclass and isinstance checks. When inheriting from this package s BaseMixin then one only needs to implement a session_maker method. class connexion_sql_utils.basemixinabc Used to test validity of a mixin. The mixin can not directly inherit from this abc class because of inheritance conflicts with sqlalchemy s declarative base class, however if a mixin declares all the required methods, then it will pass an isinstance or an issubclass check. The mixin in this package declares all of the methods except the session_maker method which should be implemented once you create a sqlalchemy.orm.sessionmaker Example: engine = create_engine(db_uri) session = scoped_session(sessionmaker(bind=engine)) class def session_maker(): return session() DbModel = declarative_base(cls=mybase) assert issubclass(dbmodel, BaseMixinABC) # True Then all of your sqlalchemy models could inherit from the DbModel. delete() Delete an instance from the database. 13

18 dump() Return a json representation of the instance. This is also used as the str() representation of an instance. classmethod get_id(id) Query the database for a single item by it s unique id. classmethod query_by(**kwargs) Query the database model with the given criteria. This is used as you would use filter_by on an sqlalchemy query. And should always return a list of items. save() Save an instance to the database. static session_maker() Return an sqlalchemy.orm.session to be used in the other methods. classmethod session_scope() A context manager for a session, should yield a sqlalchemy.orm.session update(**kwargs) Update an instance s attributes and save to the database. BaseMixin The following can be found in the sqlmixins.py module. class connexion_sql_utils.basemixin Base sqlalchemy mixin. Adds id column as a postgresql.uuid column, and will create the uuid before saving to the database. A user must define a session_maker on the mixin, to complete it as a classmethod or a staticmethod. All query methods, automatically create a session from the session_maker method that should be declared on a sub-class. Any method that creates, updates, or deletes automatically adds and commits the changes. static create_id(mapper, connection, target) Automatically creates a UUID before inserting a new item. delete(session=none) Delete an instance from the database. Parameters session An optional sqlalchemy session, if one is not passed a session will be created for the query. dump(_dict=none) str Return a json serialized string or a dict representation of the instance. Any methods that are wrapped with to_json decorator will be called on the values before returning the json string. Parameters _dict If True return a dict instead of a json string, or the class attribute dump_dict is true on a sub-class. classmethod get_id(id, session=none) Get by id. Parameters id The unique identifier for the class. 14 Chapter 4. API

19 session An optional sqlalchemy session, if one is not passed a session will be created for the query. This is would be like: >>> session.query(mydbmodel).filter_by(id=1234).first() classmethod query_by(session=none, **kwargs) Return a query statement for the class. Parameters session An optional sqlalchemy session, if one is not passed a session will be created for the query. kwargs kwargs passed into the query to filter results. This would be simalar to: >>> session.query(mydbmodel).filter_by(id=1234) save(session=none) Save an instance to the database. Parameters session An optional sqlalchemy session, if one is not passed a session will be created for the query. classmethod session_scope() A context manager for a session. Which creates a session from the import session_maker`() method that should be declared by sub-class. And is used in the database methods for a class/instance. The session will automatically try to commit any changes, rolling back on any errors, and finally closing the session. update(session=none, **kwargs) Update attributes on an instance. Parameters kwargs The attributes to update on the instance. Any attribute not declared on the class is ignored. session An optional sqlalchemy session, if one is not passed a session will be created for the query. Decorators decorators.py This module holds decorators either used by this package or for use when creating sqlalchemy database models. connexion_sql_utils.event_func(*event_names) Declare a function to listen/register for an event. The wrapped method should have the correct signature for an sqlalchemy.event. And should be declared as a staticmethod on the class that is registering for the event. See also: connexion_sql_utils.basemixin.create_id() method for an example Decorators 15

20 Parameters event_name The event name to register the function for. Example: before_insert connexion_sql_utils.to_json(*keys) Marks a function to be called on key, when converting an instance to json. This allows you to do work on an item to serialize it to json. A good example use is when you use the Numeric type, that returns a Decimal from the database, which is not json serializable, so you must convert it to a string, a float, or an int, before calling json.dumps. Parameters keys The keys/attributes to call the method on when converting. connexion_sql_utils.dump_method(fn) Allow s the ability to create custom methods that are called during an BaseMixin dump method. The method should recieve on argument which is a dict of all the values so far. The method should then return a dict of the current state of the values passed in. This allows manipulation of existing values, or adding values that are not automatically added during the dump to json. connexion_sql_utils.ensure_asset(fn) Ensure s that an asset passes an isinstance or an issubclass check for BaseMixinABC before calling a function. The asset must be the first arg to the function. CRUD crud.py This module contains methods that can be used to query the database. They are designed to be used in conjunction with the BaseMixin or a class that passes a check for the BaseMixinABC methods. These methods do work stand-alone, however they are designed to be used with functools.partial and connexion. Connexion expects the functions for it s api calls to be module level functions. So this allows one to declare an sqlalchemy model that typically derives from the BaseMixin. Then one is able to just create partial s of these utility functions for the actual operations, providing the correct kwargs needed by connexion. The only caveat is that any of the functions that require an id, must have id in their kwarg key. All of the functions in this module will fail if the asset does not pass isinstance or an issubclass check for the BaseMixinABC. A class does not need to directly inherit from BaseMixinABC, it just must declare all the methods of that interface. connexion_sql_utils.get(asset, limit=1, **kwargs) Retrieves assets from the database. Assets are always returned as a list(array) of size limit. Parameters asset The database class to query. This must inherit from Base limit The limit for the return values kwargs Are query parameters to filter the assets by Raises TypeError if the asset does not inherit from Base connexion_sql_utils.get_id(asset, **kwargs) Get an asset by the unique id. The key for the id must have id in the name in the kwargs. Example: 16 Chapter 4. API

21 get_id(foo, foo_id=1) # works get_id(foo, foo=1) # TypeError connexion_sql_utils.post(asset, **kwargs) Post an asset to the database. Parameters asset The database class to query. This must inherit from Base kwargs This should be of length 1, the key only matters to connexion, the value for the key is used as the kwargs to make an asset instance to save to the database. This allows this to be used with functools.partial. Raises TypeError if the asset does not inherit from Base connexion_sql_utils.put(asset, **kwargs) Update an asset. The kwargs should be of length 2, one of which is an id key (has id in it s name), used to look up the item in the database. The other key should not have id in it s name, and used as the data to update the asset. Parameters asset The database asset. Raises TypeError If could not find a key with id in it s name or could not find a key without id in it s name. connexion_sql_utils.delete(asset, **kwargs) Delete an asset 4.4. CRUD 17

22 18 Chapter 4. API

23 CHAPTER 5 Contributing Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions Report Bugs Report bugs at If you are reporting a bug, please include: Your operating system name and version. Any details about your local setup that might be helpful in troubleshooting. Detailed steps to reproduce the bug. Fix Bugs Look through the GitHub issues for bugs. Anything tagged with bug and help wanted is open to whoever wants to implement it. Implement Features Look through the GitHub issues for features. Anything tagged with enhancement and help wanted is open to whoever wants to implement it. Write Documentation Connexion Sqlalchemy Utils could always use more documentation, whether as part of the official Connexion Sqlalchemy Utils docs, in docstrings, or even on the web in blog posts, articles, and such. 19

24 Submit Feedback The best way to send feedback is to file an issue at If you are proposing a feature: Explain in detail how it would work. Keep the scope as narrow as possible, to make it easier to implement. Remember that this is a volunteer-driven project, and that contributions are welcome :) Get Started! Ready to contribute? Here s how to set up connexion_sql_utils for local development. 1. Fork the connexion_sql_utils repo on GitHub. 2. Clone your fork locally: $ git clone git@github.com:your_name_here/connexion_sql_utils.git 3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development: $ mkvirtualenv connexion_sql_utils $ cd connexion_sql_utils/ $ python setup.py develop 4. Create a branch for local development: $ git checkout -b name-of-your-bugfix-or-feature Now you can make your changes locally. 5. When you re done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox: $ flake8 connexion_sql_utils tests $ python setup.py test or py.test $ tox To get flake8 and tox, just pip install them into your virtualenv. 6. Commit your changes and push your branch to GitHub: $ git add. $ git commit -m "Your detailed description of your changes." $ git push origin name-of-your-bugfix-or-feature 7. Submit a pull request through the GitHub website. Pull Request Guidelines Before you submit a pull request, check that it meets these guidelines: 1. The pull request should include tests. 20 Chapter 5. Contributing

25 2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst. 3. The pull request should work for Python 2.6, 2.7, 3.3, 3.4 and 3.5, and for PyPy. Check m-housh/connexion_sql_utils/pull_requests and make sure that the tests pass for all supported Python versions. Tips To run a subset of tests: $ py.test tests.test_connexion_sql_utils 5.4. Tips 21

26 22 Chapter 5. Contributing

27 CHAPTER 6 Credits Development Lead Michael Housh <mhoush@houshhomeenergy.com> Contributors None yet. Why not be the first? 23

28 24 Chapter 6. Credits

29 CHAPTER 7 History ( ) First release on PyPI Added ability to pass a session into BaseMixin database methods. Added dump_method decorator to allow custom methods to be called while creating the json representation Added the ability to dump as dict instead of always being a json string. 25

30 26 Chapter 7. History

31 CHAPTER 8 Indices and tables genindex modindex search 27

32 28 Chapter 8. Indices and tables

33 Index C connexion_sql_utils (module), 13, 15, 16 29

Python Project Example Documentation

Python Project Example Documentation Python Project Example Documentation Release 0.1.0 Neil Stoddard Mar 22, 2017 Contents 1 Neilvana Example 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

I2C LCD Documentation

I2C LCD Documentation I2C LCD Documentation Release 0.1.0 Peter Landoll Sep 04, 2017 Contents 1 I2C LCD 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

chatterbot-weather Documentation

chatterbot-weather Documentation chatterbot-weather Documentation Release 0.1.1 Gunther Cox Nov 23, 2018 Contents 1 chatterbot-weather 3 1.1 Installation................................................ 3 1.2 Example.................................................

More information

sainsmart Documentation

sainsmart Documentation sainsmart Documentation Release 0.3.1 Victor Yap Jun 21, 2017 Contents 1 sainsmart 3 1.1 Install................................................... 3 1.2 Usage...................................................

More information

Release Nicholas A. Del Grosso

Release Nicholas A. Del Grosso wavefront r eaderdocumentation Release 0.1.0 Nicholas A. Del Grosso Apr 12, 2017 Contents 1 wavefront_reader 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

Roman Numeral Converter Documentation

Roman Numeral Converter Documentation Roman Numeral Converter Documentation Release 0.1.0 Adrian Cruz October 07, 2014 Contents 1 Roman Numeral Converter 3 1.1 Features.................................................. 3 2 Installation 5

More information

TPS Documentation. Release Thomas Roten

TPS Documentation. Release Thomas Roten TPS Documentation Release 0.1.0 Thomas Roten Sep 27, 2017 Contents 1 TPS: TargetProcess in Python! 3 2 Installation 5 3 Contributing 7 3.1 Types of Contributions..........................................

More information

Python wrapper for Viscosity.app Documentation

Python wrapper for Viscosity.app Documentation Python wrapper for Viscosity.app Documentation Release Paul Kremer March 08, 2014 Contents 1 Python wrapper for Viscosity.app 3 1.1 Features.................................................. 3 2 Installation

More information

Redis Timeseries Documentation

Redis Timeseries Documentation Redis Timeseries Documentation Release 0.1.8 Ryan Anguiano Jul 26, 2017 Contents 1 Redis Timeseries 3 1.1 Install................................................... 3 1.2 Usage...................................................

More information

Aircrack-ng python bindings Documentation

Aircrack-ng python bindings Documentation Aircrack-ng python bindings Documentation Release 0.1.1 David Francos Cuartero January 20, 2016 Contents 1 Aircrack-ng python bindings 3 1.1 Features..................................................

More information

google-search Documentation

google-search Documentation google-search Documentation Release 1.0.0 Anthony Hseb May 08, 2017 Contents 1 google-search 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

Python simple arp table reader Documentation

Python simple arp table reader Documentation Python simple arp table reader Documentation Release 0.0.1 David Francos Nov 17, 2017 Contents 1 Python simple arp table reader 3 1.1 Features.................................................. 3 1.2 Usage...................................................

More information

Google Domain Shared Contacts Client Documentation

Google Domain Shared Contacts Client Documentation Google Domain Shared Contacts Client Documentation Release 0.1.0 Robert Joyal Mar 31, 2018 Contents 1 Google Domain Shared Contacts Client 3 1.1 Features..................................................

More information

django-reinhardt Documentation

django-reinhardt Documentation django-reinhardt Documentation Release 0.1.0 Hyuntak Joo December 02, 2016 Contents 1 django-reinhardt 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

DNS Zone Test Documentation

DNS Zone Test Documentation DNS Zone Test Documentation Release 1.1.3 Maarten Diemel Dec 02, 2017 Contents 1 DNS Zone Test 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

PyCRC Documentation. Release 1.0

PyCRC Documentation. Release 1.0 PyCRC Documentation Release 1.0 Cristian Năvălici May 12, 2018 Contents 1 PyCRC 3 1.1 Features.................................................. 3 2 Installation 5 3 Usage 7 4 Contributing 9 4.1 Types

More information

Python State Machine Documentation

Python State Machine Documentation Python State Machine Documentation Release 0.6.2 Fernando Macedo Aug 25, 2017 Contents 1 Python State Machine 3 1.1 Getting started.............................................. 3 2 Installation 7 2.1

More information

Simple libtorrent streaming module Documentation

Simple libtorrent streaming module Documentation Simple libtorrent streaming module Documentation Release 0.1.0 David Francos August 31, 2015 Contents 1 Simple libtorrent streaming module 3 1.1 Dependences...............................................

More information

Poulpe Documentation. Release Edouard Klein

Poulpe Documentation. Release Edouard Klein Poulpe Documentation Release 0.0.5 Edouard Klein Jul 18, 2017 Contents 1 Poulpe 1 1.1 Features.................................................. 1 2 Usage 3 3 Installation 5 4 Contributing 7 4.1 Types

More information

Game Server Manager Documentation

Game Server Manager Documentation Game Server Manager Documentation Release 0.1.1+0.gc111f9c.dirty Christopher Bailey Dec 16, 2017 Contents 1 Game Server Manager 3 1.1 Requirements............................................... 3 1.2

More information

Python AutoTask Web Services Documentation

Python AutoTask Web Services Documentation Python AutoTask Web Services Documentation Release 0.5.1 Matt Parr May 15, 2018 Contents 1 Python AutoTask Web Services 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

Release Fulfil.IO Inc.

Release Fulfil.IO Inc. api a idocumentation Release 0.1.0 Fulfil.IO Inc. July 29, 2016 Contents 1 api_ai 3 1.1 Features.................................................. 3 1.2 Installation................................................

More information

django-idioticon Documentation

django-idioticon Documentation django-idioticon Documentation Release 0.0.1 openpolis June 10, 2014 Contents 1 django-idioticon 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

Python Schema Generator Documentation

Python Schema Generator Documentation Python Schema Generator Documentation Release 1.0.0 Peter Demin June 26, 2016 Contents 1 Mutant - Python code generator 3 1.1 Project Status............................................... 3 1.2 Design..................................................

More information

pydrill Documentation

pydrill Documentation pydrill Documentation Release 0.3.4 Wojciech Nowak Apr 24, 2018 Contents 1 pydrill 3 1.1 Features.................................................. 3 1.2 Installation................................................

More information

django-cas Documentation

django-cas Documentation django-cas Documentation Release 2.3.6 Parth Kolekar January 17, 2016 Contents 1 django-cas 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

Python State Machine Documentation

Python State Machine Documentation Python State Machine Documentation Release 0.7.1 Fernando Macedo Jan 17, 2019 Contents 1 Python State Machine 3 1.1 Getting started.............................................. 3 2 Installation 9 2.1

More information

withenv Documentation

withenv Documentation withenv Documentation Release 0.7.0 Eric Larson Aug 02, 2017 Contents 1 withenv 3 2 Installation 5 3 Usage 7 3.1 YAML Format.............................................. 7 3.2 Command Substitutions.........................................

More information

Django Wordpress API Documentation

Django Wordpress API Documentation Django Wordpress API Documentation Release 0.1.0 Swapps Jun 28, 2017 Contents 1 Django Wordpress API 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

gpib-ctypes Documentation

gpib-ctypes Documentation gpib-ctypes Documentation Release 0.1.0dev Tomislav Ivek Apr 08, 2018 Contents 1 gpib-ctypes 3 1.1 Features.................................................. 3 1.2 Testing..................................................

More information

Python data pipelines similar to R Documentation

Python data pipelines similar to R Documentation Python data pipelines similar to R Documentation Release 0.1.0 Jan Schulz October 23, 2016 Contents 1 Python data pipelines 3 1.1 Features.................................................. 3 1.2 Documentation..............................................

More information

Pykemon Documentation

Pykemon Documentation Pykemon Documentation Release 0.2.0 Paul Hallett Dec 19, 2016 Contents 1 Pykemon 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

smartfilesorter Documentation

smartfilesorter Documentation smartfilesorter Documentation Release 0.2.0 Jason Short September 14, 2014 Contents 1 Smart File Sorter 3 1.1 Features.................................................. 3 2 Installation 5 3 Usage Example

More information

Simple Binary Search Tree Documentation

Simple Binary Search Tree Documentation Simple Binary Search Tree Documentation Release 0.4.1 Adrian Cruz October 23, 2014 Contents 1 Simple Binary Search Tree 3 1.1 Features.................................................. 3 2 Installation

More information

Frontier Documentation

Frontier Documentation Frontier Documentation Release 0.1.3-dev Sam Nicholls August 14, 2014 Contents 1 Frontier 3 1.1 Requirements............................................... 3 1.2 Installation................................................

More information

django CMS Export Objects Documentation

django CMS Export Objects Documentation django CMS Export Objects Documentation Release 0.1.0 Iacopo Spalletti Sep 07, 2017 Contents 1 django CMS Export Objects 3 1.1 Features.................................................. 3 1.2 Documentation..............................................

More information

doconv Documentation Release Jacob Mourelos

doconv Documentation Release Jacob Mourelos doconv Documentation Release 0.1.6 Jacob Mourelos October 17, 2016 Contents 1 Introduction 3 2 Features 5 2.1 Available Format Conversions...................................... 5 3 Installation 7 3.1

More information

e24paymentpipe Documentation

e24paymentpipe Documentation e24paymentpipe Documentation Release 1.2.0 Burhan Khalid Oct 30, 2017 Contents 1 e24paymentpipe 3 1.1 Features.................................................. 3 1.2 Todo...................................................

More information

OpenUpgrade Library Documentation

OpenUpgrade Library Documentation OpenUpgrade Library Documentation Release 0.1.0 Odoo Community Association September 10, 2015 Contents 1 OpenUpgrade Library 3 1.1 Features.................................................. 3 2 Installation

More information

gunny Documentation Release David Blewett

gunny Documentation Release David Blewett gunny Documentation Release 0.1.0 David Blewett December 29, 2013 Contents 1 gunny 3 1.1 Features.................................................. 3 2 Installation 5 2.1 Dependencies...............................................

More information

Mantis STIX Importer Documentation

Mantis STIX Importer Documentation Mantis STIX Importer Documentation Release 0.2.0 Siemens February 27, 2014 Contents 1 Mantis STIX Importer 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

dj-libcloud Documentation

dj-libcloud Documentation dj-libcloud Documentation Release 0.2.0 Daniel Greenfeld December 19, 2016 Contents 1 dj-libcloud 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

pyldavis Documentation

pyldavis Documentation pyldavis Documentation Release 2.1.2 Ben Mabey Feb 06, 2018 Contents 1 pyldavis 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

open-helpdesk Documentation

open-helpdesk Documentation open-helpdesk Documentation Release 0.9.9 Simone Dalla Nov 16, 2017 Contents 1 Overview 3 1.1 Dependencies............................................... 3 1.2 Documentation..............................................

More information

Poetaster. Release 0.1.1

Poetaster. Release 0.1.1 Poetaster Release 0.1.1 September 21, 2016 Contents 1 Overview 1 1.1 Installation................................................ 1 1.2 Documentation.............................................. 1 1.3

More information

API Wrapper Documentation

API Wrapper Documentation API Wrapper Documentation Release 0.1.7 Ardy Dedase February 09, 2017 Contents 1 API Wrapper 3 1.1 Overview................................................. 3 1.2 Installation................................................

More information

xmljson Documentation

xmljson Documentation xmljson Documentation Release 0.1.9 S Anand Aug 01, 2017 Contents 1 About 3 2 Convert data to XML 5 3 Convert XML to data 7 4 Conventions 9 5 Options 11 6 Installation 13 7 Roadmap 15 8 More information

More information

eventbrite-sdk-python Documentation

eventbrite-sdk-python Documentation eventbrite-sdk-python Documentation Release 3.3.4 Eventbrite December 18, 2016 Contents 1 eventbrite-sdk-python 3 1.1 Installation from PyPI.......................................... 3 1.2 Usage...................................................

More information

Aldryn Installer Documentation

Aldryn Installer Documentation Aldryn Installer Documentation Release 0.2.0 Iacopo Spalletti February 06, 2014 Contents 1 django CMS Installer 3 1.1 Features.................................................. 3 1.2 Installation................................................

More information

Python AMT Tools Documentation

Python AMT Tools Documentation Python AMT Tools Documentation Release 0.8.0 Sean Dague Jan 14, 2018 Contents 1 Python AMT Tools 3 1.1 Background................................................ 3 1.2 Hardware that includes AMT......................................

More information

Python Finite State Machine. Release 0.1.5

Python Finite State Machine. Release 0.1.5 Python Finite State Machine Release 0.1.5 Sep 15, 2017 Contents 1 Overview 1 1.1 Installation................................................ 1 1.2 Documentation..............................................

More information

AnyDo API Python Documentation

AnyDo API Python Documentation AnyDo API Python Documentation Release 0.0.2 Aliaksandr Buhayeu Apr 25, 2017 Contents 1 anydo_api unofficial AnyDo API client for Python (v0.0.2 aplha) 3 1.1 Supported Features............................................

More information

Release Ralph Offinger

Release Ralph Offinger nagios c heck p aloaltodocumentation Release 0.3.2 Ralph Offinger May 30, 2017 Contents 1 nagios_check_paloalto: a Nagios/Icinga Plugin 3 1.1 Documentation..............................................

More information

django-users2 Documentation

django-users2 Documentation django-users2 Documentation Release 0.2.1 Mishbah Razzaque Mar 16, 2017 Contents 1 django-users2 3 1.1 Features.................................................. 3 1.2 Documentation..............................................

More information

django-telegram-bot Documentation

django-telegram-bot Documentation django-telegram-bot Documentation Release 0.6.0 Juan Madurga December 21, 2016 Contents 1 django-telegram-bot 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

yardstick Documentation

yardstick Documentation yardstick Documentation Release 0.1.0 Kenny Freeman December 30, 2015 Contents 1 yardstick 3 1.1 What is yardstick?............................................ 3 1.2 Features..................................................

More information

ProxySQL Tools Documentation

ProxySQL Tools Documentation ProxySQL Tools Documentation Release 0.3.12 TwinDB Development Team Dec 29, 2017 Contents 1 ProxySQL Tools 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

dicompyler-core Documentation

dicompyler-core Documentation dicompyler-core Documentation Release 0.5.3 Aditya Panchal Nov 08, 2017 Contents 1 dicompyler-core 3 1.1 Other information............................................ 3 1.2 Dependencies...............................................

More information

Job Submitter Documentation

Job Submitter Documentation Job Submitter Documentation Release 0+untagged.133.g5a1e521.dirty Juan Eiros February 27, 2017 Contents 1 Job Submitter 3 1.1 Before you start............................................. 3 1.2 Features..................................................

More information

smsghussd Documentation

smsghussd Documentation smsghussd Documentation Release 0.1.0 Mawuli Adzaku July 11, 2015 Contents 1 How to use 3 2 Author 7 3 LICENSE 9 3.1 Contents:................................................. 9 3.2 Feedback.................................................

More information

django-composite-foreignkey Documentation

django-composite-foreignkey Documentation django-composite-foreignkey Documentation Release 1.0.0a10 Darius BERNARD Nov 08, 2017 Contents 1 Installation 3 2 Quickstart 5 2.1 Example simple composite ForeignKey models.............................

More information

django-responsive2 Documentation

django-responsive2 Documentation django-responsive2 Documentation Release 0.1.3 Mishbah Razzaque Sep 27, 2017 Contents 1 django-responsive2 3 1.1 Why would you use django-responsive2?................................ 3 1.2 Using django-responsive2

More information

Gearthonic Documentation

Gearthonic Documentation Gearthonic Documentation Release 0.2.0 Timo Steidle August 11, 2016 Contents 1 Quickstart 3 2 Contents: 5 2.1 Usage................................................... 5 2.2 API....................................................

More information

PyCon APAC 2014 Documentation

PyCon APAC 2014 Documentation PyCon APAC 2014 Documentation Release 2014-01-12 Keith Yang July 06, 2014 Contents 1 PyCon APAC 2014 3 1.1 Getting Started.............................................. 3 1.2 Setting up the database..........................................

More information

nacelle Documentation

nacelle Documentation nacelle Documentation Release 0.4.1 Patrick Carey August 16, 2014 Contents 1 Standing on the shoulders of giants 3 2 Contents 5 2.1 Getting Started.............................................. 5 2.2

More information

django-composite-foreignkey Documentation

django-composite-foreignkey Documentation django-composite-foreignkey Documentation Release 1.0.1 Darius BERNARD Mar 08, 2018 Contents 1 Installation 3 2 Quickstart 5 2.1 Example simple composite ForeignKey models.............................

More information

syslog-ng Apache Kafka destination

syslog-ng Apache Kafka destination syslog-ng Apache Kafka destination Release 0.1.11 Julien Anguenot Aug 23, 2017 Contents 1 syslog-ng-mod-python Apache Kafka destination 3 2 librdkafka installation 5 2.1 DEB packages via apt..........................................

More information

Airoscript-ng Documentation

Airoscript-ng Documentation Airoscript-ng Documentation Release 0.0.4 David Francos Cuartero January 22, 2015 Contents 1 Airoscript-ng 3 1.1 Features.................................................. 3 1.2 TODO..................................................

More information

pytest-benchmark Release 2.5.0

pytest-benchmark Release 2.5.0 pytest-benchmark Release 2.5.0 September 13, 2015 Contents 1 Overview 3 1.1 pytest-benchmark............................................ 3 2 Installation 7 3 Usage 9 4 Reference 11 4.1 pytest_benchmark............................................

More information

xmodels Documentation

xmodels Documentation xmodels Documentation Release 0.1.0 Bernd Meyer November 02, 2014 Contents 1 xmodels 1 2 Overview 3 2.1 Installation................................................ 3 2.2 Usage...................................................

More information

pvl Documentation Release William Trevor Olson

pvl Documentation Release William Trevor Olson pvl Documentation Release 0.2.0 William Trevor Olson May 29, 2017 Contents 1 pvl 1 1.1 Installation................................................ 1 1.2 Basic Usage...............................................

More information

ejpiaj Documentation Release Marek Wywiał

ejpiaj Documentation Release Marek Wywiał ejpiaj Documentation Release 0.4.0 Marek Wywiał Mar 06, 2018 Contents 1 ejpiaj 3 1.1 License.................................................. 3 1.2 Features..................................................

More information

django-private-chat Documentation

django-private-chat Documentation django-private-chat Documentation Release 0.2.2 delneg Dec 12, 2018 Contents 1 :sunglasses: django-private-chat :sunglasses: 3 1.1 Important Notes............................................. 3 1.2 Documentation..............................................

More information

lazy-object-proxy Release 1.3.1

lazy-object-proxy Release 1.3.1 lazy-object-proxy Release 1.3.1 Jun 22, 2017 Contents 1 Overview 1 1.1 Installation................................................ 2 1.2 Documentation.............................................. 2

More information

dublincore Documentation

dublincore Documentation dublincore Documentation Release 0.1.1 CERN Mar 25, 2018 Contents 1 User s Guide 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

CID Documentation. Release Francis Reyes

CID Documentation. Release Francis Reyes CID Documentation Release 0.2.0 Francis Reyes Sep 30, 2017 Contents 1 Django Correlation IDs 1 1.1 Features.................................................. 1 Python Module Index 9 i ii CHAPTER 1 Django

More information

django-stored-messages Documentation

django-stored-messages Documentation django-stored-messages Documentation Release 1.4.0 evonove Nov 10, 2017 Contents 1 Features 3 2 Compatibility table 5 3 Contents 7 3.1 Installation................................................ 7 3.2

More information

Archan. Release 2.0.1

Archan. Release 2.0.1 Archan Release 2.0.1 Jul 30, 2018 Contents 1 Archan 1 1.1 Features.................................................. 1 1.2 Installation................................................ 1 1.3 Documentation..............................................

More information

PyZillow Documentation

PyZillow Documentation PyZillow Documentation Release 0.5.5 Hannes Hapke Jul 10, 2017 Contents 1 Installation 3 2 Usage of the GetDeepSearchResults API 5 3 Usage of the GetUpdatedPropertyDetails API 7 4 Contact Information

More information

Release Manu Phatak

Release Manu Phatak cache r equestsdocumentation Release 4.0.0 Manu Phatak December 26, 2015 Contents 1 Contents: 1 1.1 cache_requests.............................................. 1 1.2 Installation................................................

More information

Dragon Mapper Documentation

Dragon Mapper Documentation Dragon Mapper Documentation Release 0.2.6 Thomas Roten March 21, 2017 Contents 1 Support 3 2 Documentation Contents 5 2.1 Dragon Mapper.............................................. 5 2.2 Installation................................................

More information

cwmon-mysql Release 0.5.0

cwmon-mysql Release 0.5.0 cwmon-mysql Release 0.5.0 October 18, 2016 Contents 1 Overview 1 1.1 Installation................................................ 1 1.2 Documentation.............................................. 1 1.3

More information

Infoblox Client Documentation

Infoblox Client Documentation Infoblox Client Documentation Release 0.4.17 John Belamaric Nov 20, 2017 Contents 1 Infoblox Client 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

Durga Documentation. Release dev2. transcode

Durga Documentation. Release dev2. transcode Durga Documentation Release 0.2.0.dev2 transcode June 30, 2015 Contents 1 Features 3 2 Contents 5 2.1 Installation................................................ 5 2.2 Usage...................................................

More information

Face Recognition Documentation

Face Recognition Documentation Face Recognition Documentation Release 0.1.0 Adam Geitgey Feb 05, 2018 Contents 1 Face Recognition 3 1.1 Features.................................................. 3 1.2 Installation................................................

More information

Microlab Instruments Documentation

Microlab Instruments Documentation Microlab Instruments Documentation Release 0.1.0 Kristofer Monisit May 19, 2016 Contents 1 Quick start 1 2 Contents 3 2.1 Microlab Instruments........................................... 3 2.1.1 Features.............................................

More information

OTX to MISP. Release 1.4.2

OTX to MISP. Release 1.4.2 OTX to MISP Release 1.4.2 May 11, 2018 Contents 1 Overview 1 1.1 Installation................................................ 1 1.2 Documentation.............................................. 1 1.3 Alienvault

More information

django-bootstrap3 Documentation

django-bootstrap3 Documentation django-bootstrap3 Documentation Release 3.3.0 Dylan Verheul March 01, 2017 Contents 1 django-bootstrap3 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

invenio-groups Documentation

invenio-groups Documentation invenio-groups Documentation Release 1.0.0.dev20160000 CERN Oct 03, 2016 Contents 1 User s Guide 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

MT940 Documentation. Release Rick van Hattem (wolph)

MT940 Documentation. Release Rick van Hattem (wolph) MT940 Documentation Release 4.12.1 Rick van Hattem (wolph) May 11, 2018 Contents 1 Installation 3 2 Usage 5 3 mt940 7 3.1 mt940 package.............................................. 7 4 Contributing 19

More information

invenio-formatter Documentation

invenio-formatter Documentation invenio-formatter Documentation Release 1.0.0 CERN Mar 25, 2018 Contents 1 User s Guide 3 1.1 Installation................................................ 3 1.2 Configuration...............................................

More information

otree Virtual Machine Manager Documentation

otree Virtual Machine Manager Documentation otree Virtual Machine Manager Documentation Release 0.2.2 Tobias Raabe Dec 05, 2017 Contents 1 otree Virtual Machine Manager 2 1.1 Overview.......................................... 2 1.2 Features...........................................

More information

redis-lock Release 3.2.0

redis-lock Release 3.2.0 redis-lock Release 3.2.0 Sep 05, 2018 Contents 1 Overview 1 1.1 Usage................................................... 1 1.2 Features.................................................. 3 1.3 Implementation..............................................

More information

nxviz Documentation Release 0.3 Eric J. Ma

nxviz Documentation Release 0.3 Eric J. Ma nxviz Documentation Release 0.3 Eric J. Ma Mar 11, 2019 Contents 1 Installation 3 1.1 Stable release............................................... 3 1.2 From sources...............................................

More information

mlpy Documentation Release Astrid Jackson

mlpy Documentation Release Astrid Jackson mlpy Documentation Release 0.1.0 Astrid Jackson Apr 24, 2017 Contents 1 MLPy 1 1.1 Features.................................................. 1 2 Installation 3 3 Usage 5 4 Contributing 7 4.1 Types of

More information

MyAnimeList Scraper. Release 0.3.0

MyAnimeList Scraper. Release 0.3.0 MyAnimeList Scraper Release 0.3.0 Mar 14, 2018 Contents 1 Overview 1 1.1 Installation & Usage........................................... 1 1.2 Development...............................................

More information

python-hologram-api Documentation

python-hologram-api Documentation python-hologram-api Documentation Release 0.1.6 Victor Yap Oct 27, 2017 Contents 1 python-hologram-api 3 1.1 Installation................................................ 3 1.2 Documentation..............................................

More information

django mail admin Documentation

django mail admin Documentation django mail admin Documentation Release 0.1.1 Denis Bobrov Mar 11, 2018 Contents 1 Django Mail Admin 3 1.1 Features.................................................. 3 1.2 Documentation..............................................

More information

Regressors Documentation

Regressors Documentation Regressors Documentation Release 0.0.3 Nikhil Haas December 08, 2015 Contents 1 Regressors 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

pysharedutils Documentation

pysharedutils Documentation pysharedutils Documentation Release 0.5.0 Joel James August 07, 2017 Contents 1 pysharedutils 1 2 Indices and tables 13 i ii CHAPTER 1 pysharedutils pysharedutils is a convenient utility module which

More information