Skip to content

moonvent/Keygram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keygram


Table of contents

  1. About
  2. Instruction


Project was write in poetry, but also have a standart reqs file (requirements.txt).
Better use the poetry, cause poetry more complex and functional then pip or pipenv, and poetry has a written scripts which make ease develop process.

  1. Copy language from directory locale (example en);
  2. Change name on you need (example fr);
  3. Entry in src/locale/fr/LC_MESSAGE/Keygram.po;
  4. Change all words on what you need (in section msgstr);

After that write this commands in terminal:

  msgfmt src/locale/fr/LC_MESSAGES/Keygram.po -o src/locale/en/LC_MESSAGES/Keygram.mo

Or you can run this command, if you install poetry

  poetry run update_langs
  1. Project use sqlalchemy, and alembic for work with migrations;
  2. For create a new migratione entry in terminal and change directory to src/;
  3. Write command alembic revision -m "What you do in this revision message" and execute it;
  4. After that, alembic create a file in src/alembic/versions/ with end of your revision message, enter it;
  5. In this file you have a two method, upgrade and downgrade, add in upgrade what you need, and in downgrade what you need if you want downgrade in future;
  6. Leave from file and write a command alembic upgrade head.
  7. Excelent!

More detail you found in docs to alembic

About

telegram client which we can control with ONLY keyboard (not requeired ONLY keyboard :0 )

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published