Giter VIP home page Giter VIP logo

multiaccountdb's Introduction

MultiAccount Database Manager

Database graph: https://drawsql.app/teams/omadli/diagrams/sanjarbek


Features

  • Multi Telegram Accounts database managing
  • Working with telethon
  • Sqlite or PostgreSQL database
  • Accounts, Groups, Channels models
  • Working with command line interface
  • Amazing and powerfull admin site interface


Installation

The installation process consists of 6 steps:

  1. Clone this repo:
$ git clone https://github.com/omadli/MultiAccountDb
  1. Creating virtual environment and activate it In Windows:
$ pip install virtualenv
$ python -m venv venv
$ .\venv\Scripts\activate

In Linux:

$ python3 -m pip install virtualenv
$ python3 -m venv venv
$ source venv/bin/activate
  1. Install requirement libraries
$ pip install -r requirements.txt
  1. Copy .env.example file as named .env file:
$ cp .env.example .env
  1. Edit your environment variables:

Warning

API_ID and API_HASH is not work with default values!

  1. Migrate and run server or createadmin:
$ python manage.py migrate
$ python manage.py createsuperuser
$ python manage.py runserver

Enjoy :)



Notes:

Add account with management command add_user:

$ python manage.py add_user

Dump django database to json file:

$ python manage.py dumpdata --natural-foreign --natural-primary --indent 4 > initial_db.json

Load database from json file:

$ python manage.py loaddata initial_db.json


© Murodillo 2024.

multiaccountdb's People

Contributors

omadli avatar

Watchers

 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.