Giter VIP home page Giter VIP logo

pegasus's Introduction

Development

Setting up development environment (ASSUMING WINDOWS)

  1. Set up IDE...
    1. Add virtual environment for IDE
      • PyCharm -> python interpreter
  2. Add virtual environment for shell (WSL)
    • Linux:
      • pip -m venv venv_linux
      • . venv_linux/bin/activate
      • . env.sh
      • pip install -r requirements.txt
    • Windows:
      • Just use IDE virtual environment
      • venv/Scripts/activate.bat
      • env.bat
      • pip install -r requirements.txt
  3. Set up Docker...
    1. Open Docker Hub
    2. Open shell connected to Docker Hub (WSL)
    3. run docker-compose up -d
    4. run docker-compose stop reels
    5. run docker-compose stop worker
  4. Open shell window (WSL) to run server request handler locally (reels)
    1. run python manage.py migrate (set up django default database info)
    2. run python manage.py shell (setting up reels database info) and in the shell...
      1. run from reels.sql.sql import get_sql_handler
      2. run get_sql_handler().init_database()
      3. exit with exit()
    3. run python manage.py runserver
  5. Open shell window (WSL) to run server worker for serving compilation requests
    1. run celery -A pegasus worker -l info

Compilation Config Options

  • file_type: str
  • gamertag: str
  • gamertag_position: list(str, str)
  • logo_position: list(str, str)
  • audio_start: int
  • audio_end: int
  • extras: bool

Example:

{ 
    "file_type": "mp4",
    "logo_position": ["left", "bottom"],
    "extras": true
}

pegasus's People

Contributors

joaniffer avatar whimxiqal avatar aditya4singla avatar

Watchers

James Cloos avatar  avatar

Forkers

nehals2

pegasus's Issues

Format imports to just use modules and files

I prefer formatting with the import lines being simple and short rather than importing the functions and constants themselves fully. I'd like to switch all imports to the shortest possible version and explicitly specify which modules/files from which each implemented component originates.

Delete session clips from blob when session data gets deleted

The sql rows which store the session clip data with the sessions attached are deleted through a cascaded foreign key. The blobs with the data need to be deleted too. Perhaps this can be done with a cron job by iterating through the blob and delete all entries which do not have a matching sql row.

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.