GithubHelp home page GithubHelp logo

molbert's Introduction

Dependencies

  • python 3.11
  • pg 14
  • S3 compatible server
  • install requirements.txt

Configuration

Environmental variables are used.

# DB
DATABASE_URL=postgresql://app:123123123@localhost/app
# aka Echo in sqlalchemy session
DEBUG_SQL=true

# Image processing
## SSL Verify
## To skip SSL verification on ML APIs calls, if required during testing
ML_SSL_VERIFY=true
# Internal
## Internal name service, used in internal ml url template
ML_NAME_SERVICE=1700555555
## Internal workspace id for internal ml x-workspace-id header value
ML_WORKSPACE_ID=aaaaa-aaaaa-aaaaaa-aaaaaaaa

# 24ai token
ML_24AI_TOKEN=
ML_24AI_URL=https://core.24ai.tech/api/v1/

# ml calls retry tuning
ML_RETRY_INTERNVAL=10
ML_RETRY_ATTEMPTS=10

# S3 Configuration
AWS_ACCESS_KEY_ID=minioadmin
AWS_SECRET_ACCESS_KEY=minioadmin
# Default `us-east-1` for minio
AWS_REGION=us-east-1
S3_BUCKET=molbert
S3_ENDPOINT_URL=http://127.0.0.1:9000
## Subdir in bucket to use, i.e. bucket/image_dir/object_key
IMAGE_DIR=images

# App settings
## Upload size limit, ~12mb by default
UPLOAD_SIZE_LIMIT_BYTES=12000000

Developing

  • define environmental variables
  • run PG/S3
  • ...or use docker-compose
  • ...or specify external in env vars
  • run locally
  • ...or use docker
  • e.g. uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --reload-dir app

molbert's People

Watchers

Sergei Shikalov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.