Skip to main content

oTree is a toolset that makes it easy to create and administer web-based social science experiments.

Project description

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

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

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

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

otree-5.8.2.tar.gz (446.5 kB view details)

Uploaded Source

File details

Details for the file otree-5.8.2.tar.gz.

File metadata

  • Download URL: otree-5.8.2.tar.gz
  • Upload date:
  • Size: 446.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for otree-5.8.2.tar.gz
Algorithm Hash digest
SHA256 c9da26c3b8f0b4c545cb8238f71b9eb4ce926c40b99ed4baa2d515edd99b119f
MD5 38d34fb2c6ee1a57c2dd3f7e63a83a51
BLAKE2b-256 05b4607f504553a7f55e8bad9e7a5d75a89b2878fa36b31acfc0a803c01a44c7

See more details on using hashes here.

Supported by

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