Skip to main content

A jpype based TRADE wrapper for using TRADE with Python

Project description

Disclaimer

This is a MAJOR work in progress. Everything is subject to change, and for now this readme only describes calling TRADE services from Python. We have functionality to call a Python TRADE service (either from Java or Python). Documentation will come shortly.

Installing with pip

Installing From Source

Setup

  1. Set up DIARC. See the DIARC readme for install instructions.
  2. Check out the branch rl.
  3. Run the command: ./gradlew publishToMavenLocal.
  4. Download the diarc-rl repo.

Configuring

  1. In the DIARC readme, follow instructions for setting up Metric-FF. This will include creating/modifying gradle.properties.
  2. In the DIARC trade.properties.default, follow the instructions for making your own trade.properties file for java.
  3. In your personal trade.properties, change STARTDISCOVERY to true.

Using the Python DIARC Wrapper

  1. If you just want to use TRADE, you can just import pyTRADE.core.wrapper. The JVM will automatically start.
  2. If you want to use the DIARC wrapper, instantiate the TRADEWrapper object.
  3. You can now use its various methods, most importantly call_trade(...).

Note: After importing diarc_wrapper, you can also import anything from the DIARC and TRADE jars. Import order matters here!

DIARC Components

Implementing an existing interface

Making a new interface

Todo:

  • requirements.txt
  • Documentation + example of java -> python (including making interface)
  • Implement DIARC detectors
  • Let users add to the classpath

For questions, email (marlow.fawn@gmail.com)

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

pytrade_wrapper-0.1.0.tar.gz (767.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytrade_wrapper-0.1.0-py3-none-any.whl (768.8 kB view details)

Uploaded Python 3

File details

Details for the file pytrade_wrapper-0.1.0.tar.gz.

File metadata

  • Download URL: pytrade_wrapper-0.1.0.tar.gz
  • Upload date:
  • Size: 767.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pytrade_wrapper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19acd5559a1c05b9888136a704c8032c98d85fbd9231a42ef1ed15c016e32731
MD5 5766d2577f49e3d53a5d50b369331bff
BLAKE2b-256 46868705c7819907a651a837228f08a2cedd3da3fbd99136d6ac6c40b086266e

See more details on using hashes here.

File details

Details for the file pytrade_wrapper-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytrade_wrapper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 768.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pytrade_wrapper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5da5dd8054b3bc762576d304fa17bbd6d8ca0b5c178e4b3b30fc23b8d6d382ff
MD5 ace2a78902cd05d8d1dbd924d00e3576
BLAKE2b-256 6cdfd0ecb4d04c47b11b048fedc2eb936573b47fe8a026e421b3047a7c43aee4

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