Coder Social home page Coder Social logo

whdxwym / pyfarm-master Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pyfarm/pyfarm-master

0.0 0.0 0.0 3.39 MB

Sub-library which contains the code necessary to communicate with the database via a REST api.

License: Other

JavaScript 1.95% Python 84.64% CSS 1.27% HTML 12.14%

pyfarm-master's Introduction

PyFarm Master

build status (master)

coverage

Sub-library which contains the code necessary to run an instance of the master server. The primary purposes of the master including serving a REST API, running the scheduler and serving the web interface.

Python Version Support

This library supports Python 2.7 and Python 3.3+ in one code base. Python 2.6 and lower is not supported due to syntax differences and support for 2.6 in external libraries.

Documentation

The documentation for this this library is hosted on Read The Docs. It's generated directly from this library using sphinx (setup may vary depending on platform):

virtualenv env
. env/bin/activate
pip install sphinx sphinxcontrib-httpdomain
pip install -e . --egg
make -C docs html

Testing

Note

A broker is required for most of the tests due to pyfarm.master's dependency on celery. Redis is recommended because it's the default, least persistent and easiest to setup.

General Testing

Tests are run on Travis for every commit. They can also be run locally too (setup may vary depending on platform):

virtualenv env
. env/bin/activate
pip install nose
pip install -e . --egg
nosetests tests/

Testing Specific Databases

By default tests are run against sqlite. While this is sufficient in many cases it's generally best to test against the database type you wish to use. Setup wise the only difference will be in the call to nosetests:

PYFARM_DATABASE_URI="dialect+driver://username:password@host:port/database" nosetests tests/

For more information on database URIs see sqlalchemy's documentation or the Travis configuration.

pyfarm-master's People

Contributors

opalmer avatar guidow avatar joshk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.