GithubHelp home page GithubHelp logo

unmade / cyprety-rental-bot Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 147 KB

This is backend for CYRentBot

Home Page: https://telegram.me/RentTestBot

License: MIT License

Makefile 0.75% Python 97.22% Shell 1.46% Dockerfile 0.57%
python telegram telegram-bot aiohttp aiosqlite aiogram tcr clean-code circleci mypy

cyprety-rental-bot's Introduction

Cyprety Rental Bot

CircleCI Checked with mypy Codacy Badge Codacy Badge Updates License: MIT

This is backend for CYRentBot, that sends you notifications with new advertisements for rent in Limassol district

Quickstart

To start backend for your own bot install dependencies and start application:

python3 -m venv ./.venv
./.venv/bin/pip install -r requirements/requirements.txt
TELEGRAM_BOT_TOKEN=<YOUR_BOT_TOKEN> ./.venv/bin/python -m app

Or with docker:

docker run \
    -d \
    --rm \
    --env TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN} \
    --env SENTRY_DSN=${SENTRY_DSN} \
    --env SENTRY_RELEASE_VERSION=${SENTRY_RELEASE_VERSION} \
    --env DATABASE_PATH="db/sqlite.db" \
    --volume ~/db:/db \
    --name ${CONTAINER_NAME} \
    fdooch/cyrentbot:${TAG}

Currently only sqlite database is supported

History

Initial version of this bot was developed using test && commit || revert (TCR) workflow with some inspiration from clean architecture. You can read my afterthoughts here

Development

Download copy of this repo and install requirements.

python3 -m venv ./.venv
./.venv/bin/pip install -r requirements/requirements.txt -r requirements/dev-requirements.txt

Make changes and ensure linters and tests are pasing:

make lint && make test

Adding new parser

To add new parser you must subclass from Parser and implements all of its abstract method. See bazaraki parser for reference.

Deployment

To deploy code simply create new tag on the master branch.

cyprety-rental-bot's People

Contributors

pyup-bot avatar unmade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

inessa13

cyprety-rental-bot's Issues

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Pipenv install hangsup

Pipenv install hangs up on installing dep 15/17

Screenshot 2019-12-24 at 11 30 36 AM

Tried deleting lock file but still no luck

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.