Skip to main content

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 f5project create-project my_f5project

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

  1. Put all your secrets in .secrets/index.json file
  2. Run python main.py to see if it works
  3. Run scripts/setup_github_secrets.py to sync your secrets with Github secrets
  4. [Optional] Follow the instructions in scripts/setup_github_secrets.py to make it a pre-push Git hook
  5. 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


Download files

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

Source Distribution

f5project-0.0.21.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

f5project-0.0.21-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file f5project-0.0.21.tar.gz.

File metadata

  • Download URL: f5project-0.0.21.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for f5project-0.0.21.tar.gz
Algorithm Hash digest
SHA256 e82c7aa72c52a6a4b973d4ad76be54eefdf2f656d95e9a529a54a09decd4583b
MD5 c48ad2f9b70a2e76152b85ddbdf7bca3
BLAKE2b-256 c74719401e030f907de9c9ce1434adec464e2f958ffa43ee680001604797be54

See more details on using hashes here.

File details

Details for the file f5project-0.0.21-py3-none-any.whl.

File metadata

  • Download URL: f5project-0.0.21-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for f5project-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 5cf3a6e8525a0c7bcb93efd00c0f715e15e563833d2c7f6a97aea52565fabe82
MD5 4025aea014d8f58884fe476b8e80258e
BLAKE2b-256 355b536a5e6c055ebfb913ac4697db64455570f80d1fa29a4c3f5c8e1e0908f2

See more details on using hashes here.

Supported by

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