Skip to main content

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:

  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

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:

  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

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


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.25.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

f5project-0.0.25-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: f5project-0.0.25.tar.gz
  • Upload date:
  • Size: 10.8 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.25.tar.gz
Algorithm Hash digest
SHA256 90598adc203d6f692dc65d78037f37b166264e20522838f5f1fcb6095166f8fe
MD5 d169fd227b7d9b20f8c7f95587452b37
BLAKE2b-256 067babc6b6c8e95f5f362e4544ec9410c6af31c4012311c8170851d37baa9e0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: f5project-0.0.25-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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.25-py3-none-any.whl
Algorithm Hash digest
SHA256 750a5ca536ccdb78c5d5bb984516dfe794566564b4cdaef462efeabfdcbaa576
MD5 dd675439e58ea54001f52568c889eacb
BLAKE2b-256 23c5f87b78761d6b1e5020f57b1fbae8ba57428aa1e5b57fbfb8e4ea3001e4e0

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