Skip to main content

Betterlife Intelligent PSI(Purchase, Sales and Inventory) system

Project description

Betterlife Intelligent PSI Travis (.org) Code Coverage

Intelligent PSI(Purchase, Sales and Inventory) management system

GitHub Code Health Requires.io commits since release Release PyPI

Try to answer some questions like

  • Which product generates the most revenue/profit in my store and what's the data?
  • When do I need to replenish the stock and how much do I lost if that's not done?
  • What is the optimized quantity/date for replenish the stock?

Install & Run & Deploy

  • Run using Docker (Recommend)

    • Make sure docker is installed and configured correctly.
    • Clone the code via git clone https://github.com/betterlife/betterlifepsi.git
    • cd betterlifepsi && docker-compose build && docker-compose up to build and run the docker image
    • Please notice the database data is mounted to a docker volume called psi_data by default.
  • Install and run locally

    • Clone the code via git clone https://github.com/betterlife/betterlifepsi.git
    • pip install -r requirements.txt to install runtime dependencies.
    • pip install -r etc/requirements/test.txt to install development dependencies.
    • Create postgresql database and user for the application.
    • Set follow environment variables:
      • DATABASE_URL : Database URL, only postgresql is tested as of now.
      • FLASK_APP: Should be set to psi.cli:application
      • SECURITY_PASSWORD_SALT : password salt for password generation
      • SECRET_KEY : secret key for password generation
      • CLOUDINARY_URL : Cloudinary URL if use cloudinary to store image attachments
      • SENTRY_DSN : Sentry DSN if use sentry to handle exceptions
    • flask run to run the application
    • Set environment variable TEST_DATABASE_URL and invoke flask test to run tests.
  • Install and run on heroku

    • Click button Deploy to deploy current version to heroku.

Links

License

Betterlife PSI uses MIT License

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

betterlifepsi-0.6.8.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

betterlifepsi-0.6.8-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file betterlifepsi-0.6.8.tar.gz.

File metadata

  • Download URL: betterlifepsi-0.6.8.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for betterlifepsi-0.6.8.tar.gz
Algorithm Hash digest
SHA256 7469c8688b0d1364dc328a8ff3e77250145a9172d0d0d79d46f73c09eec63a06
MD5 2878d6898f1d2b57450c7c211f50f802
BLAKE2b-256 f9895c4f239e7cba7223b5cec8ab8bbebda89b9056ade5a2e7367cafdf02c1e1

See more details on using hashes here.

File details

Details for the file betterlifepsi-0.6.8-py3-none-any.whl.

File metadata

  • Download URL: betterlifepsi-0.6.8-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for betterlifepsi-0.6.8-py3-none-any.whl
Algorithm Hash digest
SHA256 af36980bf08ab44f909524988c4878c7a6600b94967f507a04670081aa45be10
MD5 c6db5e14058bb15a37fa5358a7088fe4
BLAKE2b-256 85e4746139b790bbdf3959ef177cc09f3dcdc84a4a6f40ca8614a7c5737b9610

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