Coder Social home page Coder Social logo

whdxwym / pyfarm-agent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pyfarm/pyfarm-agent

0.0 0.0 0.0 3.23 MB

Core module containing code to run PyFarm's agent.

License: Other

Shell 0.12% Python 97.99% CSS 0.10% HTML 1.54% Batchfile 0.26%

pyfarm-agent's Introduction

PyFarm Agent

build status (agent) (posix)

build status (agent) (windows)

coverage

Core module containing code to run PyFarm's agent. This will allow a remote host to:

  • Inform the master about itself
  • Request, receive and execute work via job types
  • Track and control individual processes
  • Measure and limit system resource usage

Python Version Support

This library supports Python 2.6 and Python 2.7 only for the moment. Coding practices have been geared towards supporting Python 3 when the underlying library, Twisted, is ported to Python 3.

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 nose
pip install -e . --egg
make -C docs html

Testing

All commits and pull requests are tested on Linux, Mac OS X and Windows. Tests for Linux and Mac OS X are run using Travis while Windows testing is performed on Appveyor. Code coverage analysis is also provided by Coveralls for Linux and Mac OS X.

The tests can can also run locally using Twisted's trial. Some tests will require access to external services such as httpbin.org, NTP, DNS and other network services.

Below are some examples for executing the tests locally. These are fairly minimal however and may not work in all cases. For more complete examples, checkout the configuration files used to run the tests on Travis and Appveyor:

Linux and Mac OS X:

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

Windows:

virtualenv env
env\Scripts\activate
%VIRTUALE_ENV%\Scripts\pip.exe install wheel
%VIRTUALE_ENV%\Scripts\pip.exe install -e . --egg
%VIRTUALE_ENV%\Scripts\python.exe %VIRTUALE_ENV%\Scripts\trial.py tests

Note

On Windows, if the tests fail to locate one of the agent's modules be sure you don't have another package for PyFarm installed in your system site-packages directory.

You may also have to run trial a little differently. See appveyor.yml for an example.

pyfarm-agent's People

Contributors

opalmer avatar guidow 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.