williamcanin / tkcrud

:snake: :package: :computer: Python crud using MVC-style Tkinter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tkcrud

Python crud using MVC-style Tkinter.

Features

  • Using mysql-connect-python and Tkcalendar of non-native libraries, the rest all on the nail.
  • Option to choose between MySQL and SQLite.
  • Records search field by Name and ID.

Requirements

  • Python >=3.8
  • Setuptools >= 42.0.2
  • Wheel >= 0.33.6
  • MariaDB(MySQL)>= 10.4.11-1
  • SqLite >= 3.30

Using

This project was created with PyCharm 2019.3, so we would recommend using the project with PyCharm. If you do not want to, you can start the project as follows:

Developer:

$ git clone https://github.com/snakypy/snakypy-tkcrud.git
$ cd tkcrud
$ python -m venv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
$ pip install -r requirements-dev.txt
$ bin/setup -i
$ tkcrud-run

User:

$ pip install snakypy-tkcrud --user
$ tkcrud-run

When you run the project for the first time, it will create database access settings in the "$HOME/.config/tkcrud/config/config.json" directory. Open this file with any text editor, and choose between MySQL and SQLite for database. Example:

For SQLite:

{
    "connection": {
        "dbname": "sqlite",
        "mysql": {
            "user": "",
            "password": "",
            "host": "",
            "database": "",
            "raise_on_warnings": true
        },
        "sqlite": {
            "filename": "database.sqlite"
        }
    }
}

For MySQL:

{
    "connection": {
        "dbname": "mysql",
        "mysql": {
            "user": "root",
            "password": "123",
            "host": "localhost",
            "database": "tkcrud",
            "raise_on_warnings": true
        },
        "sqlite": {
            "filename": ""
        }
    }
}

Donation

If you liked my work, buy me a coffee ☕ 😃

paypal

License

The project is available as open source under the terms of the MIT License © William Canin

Stored in the organization: Snakypy

Credits

About

:snake: :package: :computer: Python crud using MVC-style Tkinter.

License:MIT License


Languages

Language:Python 90.9%Language:Shell 6.6%Language:TSQL 2.5%