Skip to main content

Metastock

Environment

Since poetry helps us manage environments, we no longer need to use Python virtualenv.

When creating a new project and using it with PyCharm, it will be fully integrated with the default mechanism. This will create a new isolated environment in the /.cache/pypoetry/ folder.

Lúc đó, chỉ còn trường hợp xảy ra là mình muốn thay đổi version của python. For more info, visit link

pyenv install 3.9.8
pyenv local 3.9.8  # Activate Python 3.9 for the current project
poetry install

CLI Application

Development with PM2

In local development, we can use pm2 with command

pm2 start metastock/bin/start_consumer.py --log-date-format '' --interpreter=/home/wsl/.cache/pypoetry/virtualenvs/metastock-bq6tFdVW-py3.11/bin/python --instances 4 --max-memory-restart 1G -- --name=test_consumer
pm2 start metastock/bin/start_consumer.py --log-date-format '' --interpreter=/home/wsl/.cache/pypoetry/virtualenvs/metastock-bq6tFdVW-py3.11/bin/python --instances 4 --max-memory-restart 1G -- strategy_process

Production (CLI)

So far, the significant way is run by pm2. This is the best method that will not consume much time and resources compared to building a Docker file or Kubernetes.

But, we need create a python file to call metastock module

Ex:

pm2 start metastock/start_consumer.py --log-date-format '' --interpreter=/home/wsl/.cache/pypoetry/virtualenvs/metastock-bq6tFdVW-py3.11/bin/python --instances 4 --max-memory-restart 1G -- --name=test_consumer

Publish app

  1. Increase version in pyproject.toml

  2. Run publish command

    poetry publish --build
    

Refer:

Flask Application

Refer this

Metadata

Release files for metastock 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metastock 0.1.3
File Size Uploaded Provenance Actions
metastock-0.1.3.tar.gz 120.4 kB Without provenance Details for metastock-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for metastock 0.1.3
File Interpreter ABI Platform Actions
metastock-0.1.3-py3-none-any.whl Python 3 none any Details for metastock-0.1.3-py3-none-any.whl

Total release size: 350.6 kB

Release files / metastock-0.1.3.tar.gz

Download URL metastock-0.1.3.tar.gz
Size 120.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ac251f49bbcd1fcb0d7fd2618adc9340fcb8f6516c490a2fa1a16bd9854e73cc
BLAKE2b-256 checksum
How to use checksums
d661e5ec8be05b994255d4289849624e511309cadabad6a08dbd5e35d9c68241
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.0 CPython/3.11.4 Darwin/22.6.0

Release files / metastock-0.1.3-py3-none-any.whl

Download URL metastock-0.1.3-py3-none-any.whl
Size 230.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d689715588873d6358d2f6dc04823512c105cfeedf869d890e766da4a158b7be
BLAKE2b-256 checksum
How to use checksums
a6f945250b38ebbf89d4651c5c80e25f04e47fa0ac69c6276b869fd217b386f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.0 CPython/3.11.4 Darwin/22.6.0

Security for metastock 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page