Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

otree

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

otree

Framework for multiplayer strategy games and complex surveys.

  • 5.11.1
  • PyPI
  • Socket score

Maintainers
1

Homepage_

These are the core oTree libraries.

Before you fork this project, keep in mind that otree is updated frequently, and over time you might get upstream merge conflicts, as your local project diverges from the oTree mainline version.

Instead, consider creating a project with otree startproject and making your modifications in an app, using oTree’s public API. You can create custom URLs, channels, override settings, etc.

Docs

http://otree.readthedocs.io/en/latest/index.html

Quickstart

Typical setup


::

    pip install -U otree
    otree startproject oTree
    cd oTree
    otree devserver

Core dev setup

If you are modifying otree-core locally, clone or download this repo, then run this from the project root:

::

pip install -e .
cd .. # or wherever you will start your project
otree startproject oTree
cd oTree
otree devserver

i18n


To generate .pot and update .po files::

    cd tests
    pybabel extract "../otree" -o "../otree/locale/django.pot" -F "..\otree\locale\babel.ini" -k core_gettext -c Translators:
    cd ..
    pybabel update -D django -i otree/locale/django.pot -d otree/locale

To compile .po to .mo::

    pybabel compile -d otree/locale -f -D django

Note, beware of the issue
`here <https://github.com/python-babel/babel/issues/665>`__

To add a new language (e.g. Polish)::

    pybabel init -D django -i otree/locale/django.pot -d otree/locale -l pl

.. _Homepage: http://www.otree.org/


FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc