F5 project
Project description
F5 Project
Finlab Fugle for financial freedom.
This library is not ready for production. It's still under development. The document is not complete, either.
You may need to read the source code sometimes.
Install
You can install it from PyPI.
pip install f5project
However, if you haven't used it before, you may want to have a quickstart.
You can do that with pipx.
Then, you can create a project with:
pipx run --no-cache f5project create-project foo
If you don't feel like using pipx, you can also install it in a virtual environment.
cd ~/repos/my_f5project
python3 -m venv .venv
source .venv/bin/activate
pip install f5project
f5project create-project .
Why?
This library makes it easier to use Finlab/Fugle with other tools together, such as GCF and Github Action.
When deploying your code on GCF. Some troubles come up and you can't just do it like you do on your local machine. This library helps you to solve these problems. It helps you:
- Read config from json file or environment variables.
- Extract Fugle config and certificate from json file or environment variables, dynamically generate them as needed.
- Login Finlab/Fugle with config, which is a little bit annoying because Fugle SDK asks them as files.
- 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.
Then you can focus on your trading strategy and iterate faster.
Usages
- 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
TODO
- Use
pipx
to make it easier to have a quickstart template. - Dynamically generate
CI/CD
pipeline YAML file, so we can focus on the code.
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.24.tar.gz
.
File metadata
- Download URL: f5project-0.0.24.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91bb9a2ae99542ee40e2eb43b048fb7964850f555c0cd1d19765d319013325df |
|
MD5 | 650b111e034e43f38e0bd77591931b26 |
|
BLAKE2b-256 | 62a2f3339de2a6c4848dba6ee6ae87ee7eba80e922a5218af5a46d8501b05102 |
File details
Details for the file f5project-0.0.24-py3-none-any.whl
.
File metadata
- Download URL: f5project-0.0.24-py3-none-any.whl
- Upload date:
- Size: 13.2 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 | 69597b2b5f70ce13dd38675a339081013ecc97d13596566761c020f91ca8c639 |
|
MD5 | beedfa5653a846de069c3b818be81e30 |
|
BLAKE2b-256 | 42c5c689a0743e6f3e11179d570af7e5b99a80299cdf033dc36015903a6fc79c |