Git Product home page Git Product logo

acadia's Introduction

Acadia

License: MIT Code style: black

Tool for creating stickers.

Setup

The steps below walk you through an initial setup and a clean Python environment. I use Pipenv to manage the project environment and pre-commit to run CI actions both locally and in PR checks.

  1. Install Python 3.10 - https://www.python.org/downloads/

  2. Install Virtualenv - https://pypi.org/project/virtualenv/

  3. Make sure your virtual environment is running - which python

  4. Install pipenv within your running virtualenv

pip install pipenv
  1. Install dependencies
pipenv sync
  1. Run virtual environment (after setting environment variables)
pipenv shell

ENV VARIABLES

Make sure to create a .env file

The following environment variables must be set:

  • ENV_OPENAI_KEY
  • ENV_OPENAI_ORG
  • ENV_CHROME_PROFILE -- Temp not needed

For more information on setting openai variables see: https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key

For ENV_CHROME_PROFILE see First Time Setup Selenium step below.

Run Generator

Currently: run main.py in the root directory -- make sure the above environment variables are set.

Run Selenium


FIRST TIME SETUP

Open up your chrome and go to chrome://version/ and identify the default profile. Set this as your ENV_CHROME_PROFILE variable.

Go to whichever website you want to sell stickers on and login with the chrome browser you are planning to use with Selenium.


Running Selenium

Run the Selenium driver

python Selenium/driver.py

Clean up

run clean_up.py in the base directory to remove generated stickers in Sticker_Generator/data

acadia's People

Contributors

luew2 avatar

Watchers

FabD avatar  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.