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
- Set up DIARC. See the DIARC readme for install instructions.
- Check out the branch
rl. - Run the command:
./gradlew publishToMavenLocal. - Download the diarc-rl repo.
Configuring
- In the DIARC readme, follow instructions for setting up Metric-FF. This will include creating/modifying
gradle.properties. - In the DIARC
trade.properties.default, follow the instructions for making your own trade.properties file for java. - In your personal
trade.properties, changeSTARTDISCOVERYtotrue.
Using the Python DIARC Wrapper
- If you just want to use TRADE, you can just import
pyTRADE.core.wrapper. The JVM will automatically start. - If you want to use the DIARC wrapper, instantiate the
TRADEWrapperobject. - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19acd5559a1c05b9888136a704c8032c98d85fbd9231a42ef1ed15c016e32731
|
|
| MD5 |
5766d2577f49e3d53a5d50b369331bff
|
|
| BLAKE2b-256 |
46868705c7819907a651a837228f08a2cedd3da3fbd99136d6ac6c40b086266e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5da5dd8054b3bc762576d304fa17bbd6d8ca0b5c178e4b3b30fc23b8d6d382ff
|
|
| MD5 |
ace2a78902cd05d8d1dbd924d00e3576
|
|
| BLAKE2b-256 |
6cdfd0ecb4d04c47b11b048fedc2eb936573b47fe8a026e421b3047a7c43aee4
|