Skip to main content

AgentOS is a command line interface and python developer API for building, running, and sharing flexible learning agents.

Project description

AgentOS is an open source python API and a command line interface for building, running, and sharing learning agents. AgentOS is licensed under the Apache License, Version 2.0.

Test Status Indicator

Install and try it out

AgentOS requires Python >= 3.5. To get started, install agentos, and then run a simple agent:

# First make sure you're using python 3.5 or newer.
pip install agentos
agentos run agentos.agents.RandomAgent gym.envs.classic_control.CartPoleEnv

Then, create, explore, and extend your first Agent:

mkdir my_agent
cd my_agent
agentos init
agentos run

Also, check out the example agents in the example_agents directory of the project source code.

Learn more and see the docs at agentos.org.

Developing (installing from source)

To install agentos from source (e.g., to play with the example_agents), run the following:

git clone https://github.com/agentos-project/agentos.git
pip install -e agentos # you may want to do this inside a virtualenv or conda env.

Tests

To run tests:

$ cd agentos # the github repo root, not the nested agentos/agentos dir
$ pip install -e .
$ pip install -r test-requirements.txt
$ pytest test_all.py

Building Documentation / Agentos.org Website

The documentation is in the docs direcory and written in ReStructuredText. To build the docs you’ll need to use Sphinx::

pip install Sphinx==3.4.1 sphinx_rtd_theme==0.5.0 # these are also included in test-requirements.txt
sphinx-build docs docs/_build

agentos.org is a github.io website where the AgentOS docs are hosted. To publish updated docs to agentos.org, build the docs and put the output into the docs directory in the website branch. Those changes will become live at agentos.org automatically. Assuming you have local branches tracking both the master and website branches, that could look like:

pip install -r test-requirements # for some necessary pip packages
git checkout website
git reset master
sphinx-build documentation docs
git add docs
git commit -m "push updated docs to website"
git push

Pushing to PyPI

To push a release to PyPI, follow these python.org instructions:

pip install setuptools wheel twine
python setup.py sdist bdist_wheel
python twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentos-0.0.6.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

agentos-0.0.6-py3-none-any.whl (14.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page