F5 project
Project description
F5 Project
Finlab Fugle for financial freedom.
Quickstart
Pipx (recommended)
Use pipx to create your F5 project with a template and install all dependencies.
cd ~/repos
pipx run --no-cache f5project create-project my_f5project
cd my_f5project
pip install -r requirements.txt
Then, follow these instructions to make it work:
- Put all your secrets in
.secrets/index.json
file - Run
python main.py
to see if it works - Run
scripts/setup_github_secrets.py
to sync your secrets with Github secrets - [Optional] Follow the instructions in
scripts/setup_github_secrets.py
to make it a pre-push Git hook git push
to deploy your code according to.github/workflows/main.yml
Traditional way
If you don't feel like using pipx, you can also run this with traditional pip.
cd ~/repos
mkdir my_f5project
cd my_f5project
python3 -m venv .venv
source .venv/bin/activate
pip install f5project
f5project f5project create-project .
pip install -r requirements.txt
Then, follow these instructions to make it work:
- Put all your secrets in
.secrets/index.json
file - Run
python main.py
to see if it works - Run
scripts/setup_github_secrets.py
to sync your secrets with Github secrets - [Optional] Follow the instructions in
scripts/setup_github_secrets.py
to make it a pre-push Git hook git push
to deploy your code according to.github/workflows/main.yml
Why?
This library makes it easier to use Finlab/Fugle with GCF and CD/CD.
When deploying your code on Cloud. Many troubles come up. This library helps you to solve them. Including:
- Read config from a simle JSON file or environment variables, depending on your environment.
- Extract Fugle config and certificate from config, dynamically generate them as needed, by-passing Fugle's restriction that only accepts files as input.
- Provide a decorator to make your function a GCF endpoint, without worrying about the request/response format.
- Simulate GCF request locally.
- Sync Github secrets with local config, make CI/CD easier.
With all of these, you can focus on your trading strategy and iterate faster, letting this library handle the rest.
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
Built Distribution
File details
Details for the file f5project-0.0.26.tar.gz
.
File metadata
- Download URL: f5project-0.0.26.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaeb74f51f8fbe388402372628bed5cbb78ff27e1ed856990787c86146bae60e |
|
MD5 | 8e0b4643734d4b0ec0e324cdd1239ed8 |
|
BLAKE2b-256 | 1a6d5ec1e63df264abc89586687ee38d8d3d433015a66e67114d5e442f929af8 |
File details
Details for the file f5project-0.0.26-py3-none-any.whl
.
File metadata
- Download URL: f5project-0.0.26-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95c66834ce19a02a2bd646a7f15852fffbd58ae5911327bfb8d602811f5d1732 |
|
MD5 | 9169f537cbbf58841ff0d3f2c5f28312 |
|
BLAKE2b-256 | d54f51fc4912cb70a4fe77a572d9eec956fbc918e48886e8a80f6db741d7c9b4 |