Giter Club home page Giter Club logo

auto-post-classifier's Introduction

auto-post-classifier

Dev Env Setup

Run poetry install from the root of the project. This should get you all you need.

Code Style and Conventions

  • Make sure you use Black and
  • sort the imports using isort

Code that doesn't pass the tests in [code_style_validation] target of the Makefile won't be accepted.

Run the app

first install the dependencies using poetry

# inside the root direcroy
poetry install

It is needed to create a .env file contains the necessary information for the app to run. The field that needed to be defined can be found in the file: example.env

After that, run the app using

poetry run uvicorn main:app --host 0.0.0.0 --port 80 --reload

install poetry

https://python-poetry.org/docs/

debug with vscode

configure a launch.json for attching python process and run the program using

 python -m debugpy --listen 5678 auto_post_classifier/main.py --api -d data/AntiIsraeli.csv

pytest

solve jupyter warining:

export JUPYTER_PLATFORM_DIRS=1

run only my-py test:

pytest --mypy -m mypy

generate testing data set

  1. get a data-classified.csv file
  2. use auto_post_classifier/testing_utils.py to generate a sample.json file.
  3. run the test using pytest from the root directory

auto-post-classifier's People

Contributors

drorata avatar eitanrabinovich avatar itayh7 avatar nilnil47 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

auto-post-classifier's Issues

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.