GithubHelp home page GithubHelp logo

console-messenger's Introduction

Console_Messenger

This project is an easy messenger wrote in python with psql databases. It's based on Active Record attitude so each table in database is an unique class.

Instalation

  • clone repository form github using: git clone (adress)
  • go to database directory and write: psql -U postgres -f active.sql -h localhost active_db
  • create virtualenvironment in your repository directory: virtualenv -p python3 venv
  • Install packages used in this project: pip install -r requirements.txt
  • open console and go to project directory

Usage

This project is an messenger that allows to send messages from user1 to user2. We can create many account, edit accounts and removing them. We can show history of messages beetween two users just by writing single command. Every user is stored in users table in our database and every message is stored in messages table in database.

Flags:

  • -p --password
  • -u --username
  • -E --email
  • -l --list
  • -d --delete
  • -e --edit
  • -f --From
  • -t --to
  • -s --send
  • -H --history

Scenarios

  1. python3 run.py --username --password --email <email_adress> --edit
  • creating new user/ updating existing user
  1. python3 run.py --username --password --delete -removing user (if exists in table)
  2. python3 run.py --list
  • list of all users
  1. python3 run.py --username --password --send "Message" --to
  • after correct login data user1 sends message to user2 (both users have to exist!)
  1. python3 run.py --From --to --history
  • shows full history of converation beetween two users.

Contribiuting

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Author

License

MIT

console-messenger's People

Contributors

mkwiatek770 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.