pyrustic


Namepyrustic JSON
Version 0.1.5 PyPI version JSON
download
home_pagehttps://github.com/pyrustic/pyrustic
SummaryLightweight framework to develop, package, and publish Python desktop applications
upload_time2021-04-17 12:28:36
maintainerPyrustic Evangelist
docs_urlNone
authorPyrustic Evangelist
requires_python>=3.5
licenseMIT
keywords framework software-suite desktop-application tkinter sqlite json graphical event-notification publish-subscribe fetching-resources database-access-object theme dark-theme packaging
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
<!-- Image -->
<div align="center">
    <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/cover.png" alt="Cover">
    <br>
    <p align="center">
    <b> Desktop apps built with Pyrustic </b>
    </p>
</div>

<!-- Intro Text -->
# Pyrustic
`Pyrustic` is a lightweight framework to develop, package, and publish `Python desktop applications`.

This is a user-centric project. You are encouraged to send a [feedback](#contact).

<!-- Quick Links -->
[Tutorial](#tutorial) | [Installation](#installation) | [Reference](#framework-reference) | [Hubstore](#hubstore---to-connect-apps-with-users)


<!-- Table of contents -->
# Table Of Contents
- [Overview](#overview)
- [The Framework](#the-framework)
  - [Standard Project Structure](#standard-project-structure)
  - [GUI](#gui)
  - [Multithreading](#multithreading)
  - [Fetching Resources](#fetching-resources)
  - [Communicating Between Components And Event Notification](#communicating-between-components-and-event-notification)
  - [Database Access Object](#database-access-object)
  - [And More](#and-more)
- [The Manager](#the-manager)
- [Some Desktop Apps Built With Pyrustic](#some-desktop-apps-built-with-pyrustic)
  - [Rustiql - The Graphical SQL Editor](#rustiql---the-graphical-sql-editor)
  - [Jupitest - The Graphical Test Runner](#jupitest---the-graphical-test-runner)
  - [Hubway -  Release Your App To The World](#hubway---release-your-app-to-the-world)
  - [Hubstore - To Connect Apps With Users](#hubstore---to-connect-apps-with-users)
- [tk-cyberpunk-theme - A Dark Theme For Desktop Apps](#tk-cyberpunk-theme---a-dark-theme-for-desktop-apps)
- [Demo Video](#demo-video)
- [Requirements](#requirements)
- [Installation](#installation)
- [Documentation](#documentation)
    - [FAQ](#faq)
    - [Tutorial](#tutorial)
    - [Glossary](#glossary)
    - [Framework Reference](#framework-reference)
- [External Learning Resources](#external-learning-resources)
- [Philosophy](#philosophy)
- [License](#license)
- [Contact](#contact)

<!-- Overview -->
# Overview

<!-- Image -->
<div align="center">
    <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/pyrustic_hubstore.png" alt="Pyrustic Hubstore" width="650">
    <p align="center">
    <b> The Pyrustic Ecosystem </b>
    </p>
</div>


`Python` is one of the world's most [popular](https://www.wired.com/story/python-language-more-popular-than-ever/) programming languages. There are some great frameworks for building web application with Python. Pyrustic targets Python desktop application development.

Since a framework alone isn't enough, `Pyrustic` comes with batteries included, just like the Python language itself which comes with an amazing standard library. Pyrustic is shipped with a powerful command-line tool: `The Manager`. The Manager allows you to create a new project with the standard structure, initialize a project directory, build a distribution package, publish the distribution package, and more.

Pyrustic is flexible enough that you can use only one of its components. For example, you can decide to only use the `Table` widget from the `pyrustic.widget` package in your existing `Tkinter` codebase. Another example is to only use Pyrustic to build a [Wheel](https://wheel.readthedocs.io/en/stable/story.html) and then publish it for your users to consume through [Hubstore](https://github.com/pyrustic/hubstore).

Pyrustic is useful for a new project as well as for an existing project.


# The Framework
The Framework covers various topics, from GUI to database connection, and more.

## Standard Project Structure
The `Framework` is easy to use and flexible with only three constraints:
- you have to follow the conventional Python project structure as described in the [Python Packaging User Guide](https://packaging.python.org/tutorials/packaging-projects/);
- you need to have a `__main__.py` file in the source package;
- the project name should be the same as the source package (*).

In fact, these constraints are just good practice and guess what, the command-line tool [Manager](#the-manager) will take care of these details for you, you will just need to link a project directory, then issue the command `init`.

(*) If you are wondering how to deal with the hyphen versus underscore issue in a project structure, take a look at [tk-cyberpunk-theme](https://github.com/pyrustic/tk-cyberpunk-theme). In short, use a hyphen in the distribution package name and use an underscore in the import package name.


## GUI
Pyrustic proudly uses `Tkinter` as `GUI Toolkit`. Why [Tkinter](https://en.wikipedia.org/wiki/Tkinter) ? Read this [answer](https://github.com/pyrustic/pyrustic/blob/master/docs/FAQ.md#why-tkinter--isnt-that-a-bad-bet-).

Some features related to the GUI:
- The `Framework` comes with many awesome widgets (mega-widgets to be precise): `Table`, `Scrollbox`, `Toast`, `Tree` and more.
- `pyrustic.default_style` and `pyrustic.theme.Theme`: a style/theme mechanism to make it easy for you to build beautiful GUIs.
- `tk_cyberpunk_theme`: a dark theme ready to use.
- `pyrustic.view.View`: Pyrustic comes with the concept of `views`. `Views` are optional to use and are compatible with Tkinter. In fact, Views provides an intuitive lifecycle mechanism that will make it easier to build and maintain your GUI.
- and more...

### Example of typical `__main__.py` content

The following is an excerpt from the demo. Explore the [demo project](https://github.com/pyrustic/demo).

<details>
    <summary>Click to expand (or collapse)</summary>

```python
from pyrustic.app import App
from tk_cyberpunk_theme.main import Cyberpunk
from demo.view.main_view import MainView


def main():
    # The App
    app = App(__package__)
    # Set theme
    app.theme = Cyberpunk()
    # Set view
    app.view = MainView(app)  # it could be a Tkinter object
    # Center the window
    app.center()
    # Lift off !
    app.start()


if __name__ == "__main__":
    main()

```

</details>


## Multithreading
It is well known how difficult it is to implement multithreading in a Tkinter application. Pyrustic comes with `pyrustic.threadom`: a `library` to make it easy to develop multithreading applications. You can retrieve from the main thread the values returned by the functions executed in other threads and also the exceptions raised by these functions.

[Jupitest](https://github.com/pyrustic/jupitest) the graphical `Test Runner` makes extensive use of the `pyrustic.threadom` library to perform smooth real-time test reporting.

## Fetching Resources
Pyrustic comes with `pyrustic.gurl`: a `library` to fetch resources with an implementation of [conditional request](https://developer.mozilla.org/en-US/docs/Web/HTTP/Conditional_requests) and a smart responses caching system.

[Hubway](https://github.com/pyrustic/hubway) the app to publish application, uses this library to fetch resources as a good API citizen.

## Communicating Between Components And Event Notification
As a software grows, so is its complexity. Pyrustic comes with `pyrustic.com` a library to allow loosely coupled components to exchange data, subscribe to and publish events.

Please read the [tutorial](#tutorial) to get a deep understanding of this section.


## Database Access Object
Pyrustic comes with `pyrustic.dao`: a `library` to simplify the connection to your [SQLite](https://www.sqlite.org/index.html) database.
This library has some cool features like the ability to specify what I call a `creational script` that will be used to create a new database when it is missing.

## And More
- `pyrustic.jasonix`: a `library` included in the `Framework` which makes it so cool to work with `JSON` files. `Pyrustic` uses extensively this `library` to store user preferences, configuration data and more. With this `library`, you can initialize preferences/configuration/whatever files easily, thanks to the internal mechanism of `Jasonix` that creates a fresh copy of the given default `JSON` file at the target path. `Jasonix` also comes with a lock to open [JSON](https://en.wikipedia.org/wiki/JSON) files in readonly mode.
- for obvious reasons (clue: `beta`), `Pyrustic` does not take the risk of deleting the files it needs to get rid of, instead it moves them to a `trash` folder.
- and more...

# The Manager
<!-- Image -->
<div align="center">
    <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/manager.gif" alt="Manager" width="650">
    <p align="center">
    <b> Manager </b>
    </p>
</div>

The `Manager` is a command-line application with an API that you can use to automate your workflow.

Via the `Manager` you can:
- create a project with battery included (project structure, pyproject.toml, default README.md, etc);
- easily add multiples `packages`, `modules` or `files` to your project with a one line command;
- run a specific `module` or `package` of your project;
- run any package previously installed with `pip`, in others words, you just need to type `run jupitest` to open the graphical test runner `Jupitest`;  
- view recent projects list and quickly switch between projects;
- build a distribution package according to setup.cfg and MANIFEST.in;
- publish your application (distribution package);  
- find out if the project is installed ('pip install -e') in the current virtual env;  
- and more...

Type `help` in the Manager to discover the commands. Basically, you will often need to use the command `link` or `relink` to link a project to the Manager, `init` to initialize your project, `run` to run your project, `build` to build a distribution package and `publish` to publish your app.

You need a personal access token to publish your application. It is easy to generate a personal access token. Read this [article](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token).


# Some Desktop Apps Built With Pyrustic
The following apps are made with Pyrustic:
- `Rustiql`: a graphical `SQL Editor`;
- `Jupitest`: a graphical `Test Runner`;
- `Jupitest`: a graphical `Test Runner`;
- `Hubway`: an application to publish your project;
- `Hubstore`: an application to connect your apps with your users. 

Their themes are based on [tk-cyberpunk-theme](https://github.com/pyrustic/tk-cyberpunk-theme).

## Rustiql - The Graphical SQL Editor
<!-- Image -->
<div align="center">
    <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/rustiql.gif" alt="SQL Editor" width="650">
    <p align="center">
    <b> SQL Editor </b>
    </p>
</div>

The graphical `SQL Editor` allows you to:
- visualize your databases content;
- edit your database (CRUD);
- import SQL scripts;
- open in-memory database;
- and more...

Install `Rustiql`:
```bash
pip install rustiql
```

The `SQL Editor` makes extensive use of the `pyrustic.dao` library.



## Jupitest - The Graphical Test Runner
<!-- Image -->
<div align="center">
    <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/jupitest.gif" alt="Test Runner" width="650">
    <p align="center">
    <b> Test Runner </b>
    </p>
</div>

The `Test Runner` reproduces the tree structure of the `tests` folder in your project. The `Test Runner` allows you to:
- run test `packages`;
- run test `modules`;
- run test `classes`;
- and even run test `methods`;
- and more...

Install `Jupitest`:
```bash
pip install jupitest
```


The `Test Runner` makes extensive use of the `pyrustic.threadom` library to perform smooth real-time test reporting.



## Hubway - Release Your App To The World
<!-- Image -->
<div align="center">
    <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/hubway.gif" alt="Hubway" width="650">
    <p align="center">
    <b> Hubway </b>
    </p>
</div>

`Hubway` is an application that allows you to publish a new release of your application on `Github`. Once published, you can track your project, see metrics like the number of `stargazers`, `subscribers` or releases `downloads`.


Install `Hubway`:
```bash
pip install hubway
```


`Hubway` makes extensive use of `pyrustic.gurl` to fetch resources.

You need a personal access token to publish a release via `Hubway` or to increase the API rate limit.
It is easy to generate a personal access token. Read this [article](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token).



## Hubstore - To Connect Apps With Users
<!-- Image -->
<div align="center">
    <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/hubstore_cover.png" alt="Hubstore" width="650">
    <p align="center">
    <b> Hubstore </b>
    </p>
</div>

Once you have published your app to Github with the command `publish`, the next question that arises is: "How to make the `find-download-install-run` process easier for users?". This is where the `Hubstore` comes in.

With `Hubstore`, it's easy to showcase, distribute, install, and manage your Python desktop apps.

Note that any Python Wheel app is compatible with `Hubstore`, in others words, you don't need to use the `Pyrustic` Framework to have a `Hubstore` compatible app.

`Hubstore` is available on PyPI.

Do you want to learn more about `Hubstore` ? Discover [Hubstore](https://github.com/pyrustic/hubstore#readme) !

# tk-cyberpunk-theme - A Dark Theme For Desktop Apps
The `tk-cyberpunk-theme` is used as base theme in `Hubstore`, `Jupitest`, `Rustiql` and `Hubway`.

`Pyrustic` is shipped with `tk-cyberpunk-theme`, so you don't need to install it.


Install `tk-cyberpunk-theme`:
```bash
pip install tk-cyberpunk-theme
```

Discover the [cyberpunk theme](https://github.com/pyrustic/tk-cyberpunk-theme) !



<!-- Demo -->
# Demo Video
This is the _now obsolete_ demo video but still worth watching.

Watch the [video](https://pyrustic.github.io) !

I will upload an up-to-date video later.

To open the page in a new tab, you can just do a CTRL+click (on Windows and Linux) or CMD+click (on MacOS) on the link.


<!-- Requirements -->
# Requirements
`Pyrustic` is a `cross platform` software suite. It should work on your computer (or nope, haha, versions under `1.0.0` will be considered `Beta` at best). It is built on [Ubuntu](https://ubuntu.com/download/desktop) with `Python 3.5`. `Pyrustic` comes with absolutely no warranty. So... à la guerre comme à la guerre.

As `Pyrustic` is built with `Python` for `Python developers` and also makes extensive use of `Tkinter`, you may need to learn [Python](#introduction-to-python) and [Tkinter](#introduction-to-tkinter).

<!-- Installation -->
# Installation
Built on [Ubuntu](https://ubuntu.com/download/desktop) with `Python 3.5`. `Pyrustic` comes with absolutely no warranty and is available on the Python Package Index [PyPI](https://pypi.org/).

If you have never installed a package from PyPI, you must install the `pip` tool enabling you to download and install a PyPI package. There are several methods which are described on this [page](https://pip.pypa.io/en/latest/installing/).

```bash
$ pip install pyrustic

$ pyrustic
Welcome to Pyrustic Manager !
Version: 0.0.9
Type "help" or "?" to list commands. Type "exit" to leave.

(pyrustic) 
```

To upgrade `Pyrustic`:

```bash
$ pip install pyrustic --upgrade --upgrade-strategy eager
```


<!-- Documentation -->
# Documentation
Pyrustic is a work in progress. The versions of `Pyrustic` under `1.0.0` are aimed at an audience of early adopters. Check the FAQ and the Tutorial.

## FAQ
Read the [FAQ](https://github.com/pyrustic/pyrustic/blob/master/docs/faq/README.md#readme).

## Tutorial
Read the [Tutorial](https://github.com/pyrustic/pyrustic/blob/master/docs/tutorial/README.md#readme).

## Guide
Read the [Guide](https://github.com/pyrustic/pyrustic/blob/master/docs/guide/README.md#readme).

## Glossary
Read the [Glossary](https://github.com/pyrustic/pyrustic/blob/master/docs/glossary/README.md#readme).

## Framework Reference
Read the [Framework Reference](https://github.com/pyrustic/pyrustic/blob/master/docs/reference/README.md#readme).



# External Learning Resources
Interesting links below to get started with Python, Tkinter and SQLite.

## Introduction to Python
- [python-guide](https://docs.python-guide.org/intro/learning/).
- [python tutorial](https://www.python-course.eu/python3_course.php). 
- freeCodeCamp on [Youtube](https://www.youtube.com/watch?v=rfscVS0vtbw).

## Introduction to Tkinter
- [tkdocs](https://tkdocs.com/).
- [tkinter tutorial](https://www.python-course.eu/python_tkinter.php).
- freeCodeCamp on [Youtube](https://www.youtube.com/watch?v=YXPyB4XeYLA).

## Introduction to SQLite
- [sqlitetutorial](https://www.sqlitetutorial.net/).
- freeCodeCamp on [Youtube](https://www.youtube.com/watch?v=byHcYRpMgI4).

Note: I am not affiliated with any of these entities. A simple web search brings them up.


<!-- Philosophy -->
# Philosophy
<details>
    <summary>Click to expand (or collapse)</summary>

## Wisdom from Antiquity
<!-- Image -->
<div align="center">
    <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/diogenes.jpg" alt="Diogenes" width="650">
    <p align="center">
    By <a href="https://en.wikipedia.org/wiki/en:Jean-L%C3%A9on_G%C3%A9r%C3%B4me" class="extiw" title="w:en:Jean-Léon Gérôme">Jean-Léon Gérôme</a> - <a href="https://en.wikipedia.org/wiki/en:Walters_Art_Museum" class="extiw" title="w:en:Walters Art Museum">Walters Art Museum</a>: <a href="https://thewalters.org/" rel="nofollow"></a> <a rel="nofollow" class="external text" href="https://thewalters.org/">Home page</a>&nbsp;<a href="https://art.thewalters.org/detail/31957" rel="nofollow"></a> <a rel="nofollow" class="external text" href="https://art.thewalters.org/detail/31957">Info about artwork</a>, Public Domain, <a href="https://commons.wikimedia.org/w/index.php?curid=323523">Link</a>
    </p>
</div>

<br>

> He owned a cup which served also as a bowl for food but threw it away when he saw a boy drinking water from his hands and realized one did not even need a cup to sustain oneself.</p>
>
>    --Mark, J. J. (2014, August 02). [Diogenes of Sinope](href="https://www.ancient.eu/Diogenes_of_Sinope/). Ancient History Encyclopedia. Retrieved from https://www.ancient.eu/Diogenes_of_Sinope/

<br>

## Advertisement from the twentieth century
<!-- Image -->
<div align="center">
    <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/ibm.jpg" alt="IBM" width="500">
    <p align="justify">
    By Cecile &amp; Presbrey advertising agency for International Business Machines. - Scanned from the December 1951 issue of Fortune by <a href="//commons.wikimedia.org/wiki/User:Swtpc6800" title="User:Swtpc6800">User:Swtpc6800</a> Michael Holley. The image was touched up with Adobe Photo Elements., Public Domain, <a href="https://commons.wikimedia.org/w/index.php?curid=17480483">Link</a>
    </p>
</div>

<br>

> 150 Extra Engineers
>
> An IBM Electronic Calculator speeds through thousands of intricate computations so quickly that on many complex problems it's like having 150 EXTRA Engineers.
>
> No longer must valuable engineering personnel ... now in critical shortage ... spend priceless creative time at routine repetive figuring.
>
> Thousands of IBM Electronic Business Machines ... vital to our nation's defense ... are at work for science, industry, and the armed forces, in laboratories, factories, and offices, helping to meet urgent demands for greater production.
>
> -- IBM International Business Machines

</details>


<!-- License -->
# License
`Pyrustic` is licensed under the terms of the permissive free software license `MIT License`.

<!-- Contact -->
# Contact
<details>
    <summary>Click to expand (or collapse)</summary>

<br>

Hi ! I'm Alex, operating by ["Crocker's Rules"](http://sl4.org/crocker.html)
<!-- Image -->
![email](https://raw.githubusercontent.com/pyrustic/misc/master/media/email.png)

<!-- xoxo -->
<details>
    <summary></summary>
        <br>
        <br>
        Congratz ! You just found the Easter Meggs !
        <br>
        <br>
        <!-- Image -->
        <div align="center">
            <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/meme_1.jpg" alt="Meme">
            <br>
            <br>
            <br>
            <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/meme_5.jpg" alt="Meme">
            <br>
            <br>
            <br>
            <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/meme_6.jpg" alt="Meme">
            <br>
            <br>
            <br>
            <img src="https://raw.githubusercontent.com/pyrustic/misc/master/media/meme_7.jpg" alt="Meme">
            <br>
            <br>
            <br>
        </div>
</details>

</details>





            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pyrustic/pyrustic",
    "name": "pyrustic",
    "maintainer": "Pyrustic Evangelist",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "pyrustic@protonmail.com",
    "keywords": "framework,software-suite,desktop-application,tkinter,sqlite,json,graphical,event-notification,publish-subscribe,fetching-resources,database-access-object,theme,dark-theme,packaging",
    "author": "Pyrustic Evangelist",
    "author_email": "pyrustic@protonmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a5/0c/64fefbd71e31996516bb23388709a7b93798ee1daf1638a45559584371bd/pyrustic-0.1.5.tar.gz",
    "platform": "",
    "description": "\n<!-- Image -->\n<div align=\"center\">\n    <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/cover.png\" alt=\"Cover\">\n    <br>\n    <p align=\"center\">\n    <b> Desktop apps built with Pyrustic </b>\n    </p>\n</div>\n\n<!-- Intro Text -->\n# Pyrustic\n`Pyrustic` is a lightweight framework to develop, package, and publish `Python desktop applications`.\n\nThis is a user-centric project. You are encouraged to send a [feedback](#contact).\n\n<!-- Quick Links -->\n[Tutorial](#tutorial) | [Installation](#installation) | [Reference](#framework-reference) | [Hubstore](#hubstore---to-connect-apps-with-users)\n\n\n<!-- Table of contents -->\n# Table Of Contents\n- [Overview](#overview)\n- [The Framework](#the-framework)\n  - [Standard Project Structure](#standard-project-structure)\n  - [GUI](#gui)\n  - [Multithreading](#multithreading)\n  - [Fetching Resources](#fetching-resources)\n  - [Communicating Between Components And Event Notification](#communicating-between-components-and-event-notification)\n  - [Database Access Object](#database-access-object)\n  - [And More](#and-more)\n- [The Manager](#the-manager)\n- [Some Desktop Apps Built With Pyrustic](#some-desktop-apps-built-with-pyrustic)\n  - [Rustiql - The Graphical SQL Editor](#rustiql---the-graphical-sql-editor)\n  - [Jupitest - The Graphical Test Runner](#jupitest---the-graphical-test-runner)\n  - [Hubway -  Release Your App To The World](#hubway---release-your-app-to-the-world)\n  - [Hubstore - To Connect Apps With Users](#hubstore---to-connect-apps-with-users)\n- [tk-cyberpunk-theme - A Dark Theme For Desktop Apps](#tk-cyberpunk-theme---a-dark-theme-for-desktop-apps)\n- [Demo Video](#demo-video)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Documentation](#documentation)\n    - [FAQ](#faq)\n    - [Tutorial](#tutorial)\n    - [Glossary](#glossary)\n    - [Framework Reference](#framework-reference)\n- [External Learning Resources](#external-learning-resources)\n- [Philosophy](#philosophy)\n- [License](#license)\n- [Contact](#contact)\n\n<!-- Overview -->\n# Overview\n\n<!-- Image -->\n<div align=\"center\">\n    <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/pyrustic_hubstore.png\" alt=\"Pyrustic Hubstore\" width=\"650\">\n    <p align=\"center\">\n    <b> The Pyrustic Ecosystem </b>\n    </p>\n</div>\n\n\n`Python` is one of the world's most [popular](https://www.wired.com/story/python-language-more-popular-than-ever/) programming languages. There are some great frameworks for building web application with Python. Pyrustic targets Python desktop application development.\n\nSince a framework alone isn't enough, `Pyrustic` comes with batteries included, just like the Python language itself which comes with an amazing standard library. Pyrustic is shipped with a powerful command-line tool: `The Manager`. The Manager allows you to create a new project with the standard structure, initialize a project directory, build a distribution package, publish the distribution package, and more.\n\nPyrustic is flexible enough that you can use only one of its components. For example, you can decide to only use the `Table` widget from the `pyrustic.widget` package in your existing `Tkinter` codebase. Another example is to only use Pyrustic to build a [Wheel](https://wheel.readthedocs.io/en/stable/story.html) and then publish it for your users to consume through [Hubstore](https://github.com/pyrustic/hubstore).\n\nPyrustic is useful for a new project as well as for an existing project.\n\n\n# The Framework\nThe Framework covers various topics, from GUI to database connection, and more.\n\n## Standard Project Structure\nThe `Framework` is easy to use and flexible with only three constraints:\n- you have to follow the conventional Python project structure as described in the [Python Packaging User Guide](https://packaging.python.org/tutorials/packaging-projects/);\n- you need to have a `__main__.py` file in the source package;\n- the project name should be the same as the source package (*).\n\nIn fact, these constraints are just good practice and guess what, the command-line tool [Manager](#the-manager) will take care of these details for you, you will just need to link a project directory, then issue the command `init`.\n\n(*) If you are wondering how to deal with the hyphen versus underscore issue in a project structure, take a look at [tk-cyberpunk-theme](https://github.com/pyrustic/tk-cyberpunk-theme). In short, use a hyphen in the distribution package name and use an underscore in the import package name.\n\n\n## GUI\nPyrustic proudly uses `Tkinter` as `GUI Toolkit`. Why [Tkinter](https://en.wikipedia.org/wiki/Tkinter) ? Read this [answer](https://github.com/pyrustic/pyrustic/blob/master/docs/FAQ.md#why-tkinter--isnt-that-a-bad-bet-).\n\nSome features related to the GUI:\n- The `Framework` comes with many awesome widgets (mega-widgets to be precise): `Table`, `Scrollbox`, `Toast`, `Tree` and more.\n- `pyrustic.default_style` and `pyrustic.theme.Theme`: a style/theme mechanism to make it easy for you to build beautiful GUIs.\n- `tk_cyberpunk_theme`: a dark theme ready to use.\n- `pyrustic.view.View`: Pyrustic comes with the concept of `views`. `Views` are optional to use and are compatible with Tkinter. In fact, Views provides an intuitive lifecycle mechanism that will make it easier to build and maintain your GUI.\n- and more...\n\n### Example of typical `__main__.py` content\n\nThe following is an excerpt from the demo. Explore the [demo project](https://github.com/pyrustic/demo).\n\n<details>\n    <summary>Click to expand (or collapse)</summary>\n\n```python\nfrom pyrustic.app import App\nfrom tk_cyberpunk_theme.main import Cyberpunk\nfrom demo.view.main_view import MainView\n\n\ndef main():\n    # The App\n    app = App(__package__)\n    # Set theme\n    app.theme = Cyberpunk()\n    # Set view\n    app.view = MainView(app)  # it could be a Tkinter object\n    # Center the window\n    app.center()\n    # Lift off !\n    app.start()\n\n\nif __name__ == \"__main__\":\n    main()\n\n```\n\n</details>\n\n\n## Multithreading\nIt is well known how difficult it is to implement multithreading in a Tkinter application. Pyrustic comes with `pyrustic.threadom`: a `library` to make it easy to develop multithreading applications. You can retrieve from the main thread the values returned by the functions executed in other threads and also the exceptions raised by these functions.\n\n[Jupitest](https://github.com/pyrustic/jupitest) the graphical `Test Runner` makes extensive use of the `pyrustic.threadom` library to perform smooth real-time test reporting.\n\n## Fetching Resources\nPyrustic comes with `pyrustic.gurl`: a `library` to fetch resources with an implementation of [conditional request](https://developer.mozilla.org/en-US/docs/Web/HTTP/Conditional_requests) and a smart responses caching system.\n\n[Hubway](https://github.com/pyrustic/hubway) the app to publish application, uses this library to fetch resources as a good API citizen.\n\n## Communicating Between Components And Event Notification\nAs a software grows, so is its complexity. Pyrustic comes with `pyrustic.com` a library to allow loosely coupled components to exchange data, subscribe to and publish events.\n\nPlease read the [tutorial](#tutorial) to get a deep understanding of this section.\n\n\n## Database Access Object\nPyrustic comes with `pyrustic.dao`: a `library` to simplify the connection to your [SQLite](https://www.sqlite.org/index.html) database.\nThis library has some cool features like the ability to specify what I call a `creational script` that will be used to create a new database when it is missing.\n\n## And More\n- `pyrustic.jasonix`: a `library` included in the `Framework` which makes it so cool to work with `JSON` files. `Pyrustic` uses extensively this `library` to store user preferences, configuration data and more. With this `library`, you can initialize preferences/configuration/whatever files easily, thanks to the internal mechanism of `Jasonix` that creates a fresh copy of the given default `JSON` file at the target path. `Jasonix` also comes with a lock to open [JSON](https://en.wikipedia.org/wiki/JSON) files in readonly mode.\n- for obvious reasons (clue: `beta`), `Pyrustic` does not take the risk of deleting the files it needs to get rid of, instead it moves them to a `trash` folder.\n- and more...\n\n# The Manager\n<!-- Image -->\n<div align=\"center\">\n    <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/manager.gif\" alt=\"Manager\" width=\"650\">\n    <p align=\"center\">\n    <b> Manager </b>\n    </p>\n</div>\n\nThe `Manager` is a command-line application with an API that you can use to automate your workflow.\n\nVia the `Manager` you can:\n- create a project with battery included (project structure, pyproject.toml, default README.md, etc);\n- easily add multiples `packages`, `modules` or `files` to your project with a one line command;\n- run a specific `module` or `package` of your project;\n- run any package previously installed with `pip`, in others words, you just need to type `run jupitest` to open the graphical test runner `Jupitest`;  \n- view recent projects list and quickly switch between projects;\n- build a distribution package according to setup.cfg and MANIFEST.in;\n- publish your application (distribution package);  \n- find out if the project is installed ('pip install -e') in the current virtual env;  \n- and more...\n\nType `help` in the Manager to discover the commands. Basically, you will often need to use the command `link` or `relink` to link a project to the Manager, `init` to initialize your project, `run` to run your project, `build` to build a distribution package and `publish` to publish your app.\n\nYou need a personal access token to publish your application. It is easy to generate a personal access token. Read this [article](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token).\n\n\n# Some Desktop Apps Built With Pyrustic\nThe following apps are made with Pyrustic:\n- `Rustiql`: a graphical `SQL Editor`;\n- `Jupitest`: a graphical `Test Runner`;\n- `Jupitest`: a graphical `Test Runner`;\n- `Hubway`: an application to publish your project;\n- `Hubstore`: an application to connect your apps with your users. \n\nTheir themes are based on [tk-cyberpunk-theme](https://github.com/pyrustic/tk-cyberpunk-theme).\n\n## Rustiql - The Graphical SQL Editor\n<!-- Image -->\n<div align=\"center\">\n    <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/rustiql.gif\" alt=\"SQL Editor\" width=\"650\">\n    <p align=\"center\">\n    <b> SQL Editor </b>\n    </p>\n</div>\n\nThe graphical `SQL Editor` allows you to:\n- visualize your databases content;\n- edit your database (CRUD);\n- import SQL scripts;\n- open in-memory database;\n- and more...\n\nInstall `Rustiql`:\n```bash\npip install rustiql\n```\n\nThe `SQL Editor` makes extensive use of the `pyrustic.dao` library.\n\n\n\n## Jupitest - The Graphical Test Runner\n<!-- Image -->\n<div align=\"center\">\n    <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/jupitest.gif\" alt=\"Test Runner\" width=\"650\">\n    <p align=\"center\">\n    <b> Test Runner </b>\n    </p>\n</div>\n\nThe `Test Runner` reproduces the tree structure of the `tests` folder in your project. The `Test Runner` allows you to:\n- run test `packages`;\n- run test `modules`;\n- run test `classes`;\n- and even run test `methods`;\n- and more...\n\nInstall `Jupitest`:\n```bash\npip install jupitest\n```\n\n\nThe `Test Runner` makes extensive use of the `pyrustic.threadom` library to perform smooth real-time test reporting.\n\n\n\n## Hubway - Release Your App To The World\n<!-- Image -->\n<div align=\"center\">\n    <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/hubway.gif\" alt=\"Hubway\" width=\"650\">\n    <p align=\"center\">\n    <b> Hubway </b>\n    </p>\n</div>\n\n`Hubway` is an application that allows you to publish a new release of your application on `Github`. Once published, you can track your project, see metrics like the number of `stargazers`, `subscribers` or releases `downloads`.\n\n\nInstall `Hubway`:\n```bash\npip install hubway\n```\n\n\n`Hubway` makes extensive use of `pyrustic.gurl` to fetch resources.\n\nYou need a personal access token to publish a release via `Hubway` or to increase the API rate limit.\nIt is easy to generate a personal access token. Read this [article](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token).\n\n\n\n## Hubstore - To Connect Apps With Users\n<!-- Image -->\n<div align=\"center\">\n    <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/hubstore_cover.png\" alt=\"Hubstore\" width=\"650\">\n    <p align=\"center\">\n    <b> Hubstore </b>\n    </p>\n</div>\n\nOnce you have published your app to Github with the command `publish`, the next question that arises is: \"How to make the `find-download-install-run` process easier for users?\". This is where the `Hubstore` comes in.\n\nWith `Hubstore`, it's easy to showcase, distribute, install, and manage your Python desktop apps.\n\nNote that any Python Wheel app is compatible with `Hubstore`, in others words, you don't need to use the `Pyrustic` Framework to have a `Hubstore` compatible app.\n\n`Hubstore` is available on PyPI.\n\nDo you want to learn more about `Hubstore` ? Discover [Hubstore](https://github.com/pyrustic/hubstore#readme) !\n\n# tk-cyberpunk-theme - A Dark Theme For Desktop Apps\nThe `tk-cyberpunk-theme` is used as base theme in `Hubstore`, `Jupitest`, `Rustiql` and `Hubway`.\n\n`Pyrustic` is shipped with `tk-cyberpunk-theme`, so you don't need to install it.\n\n\nInstall `tk-cyberpunk-theme`:\n```bash\npip install tk-cyberpunk-theme\n```\n\nDiscover the [cyberpunk theme](https://github.com/pyrustic/tk-cyberpunk-theme) !\n\n\n\n<!-- Demo -->\n# Demo Video\nThis is the _now obsolete_ demo video but still worth watching.\n\nWatch the [video](https://pyrustic.github.io) !\n\nI will upload an up-to-date video later.\n\nTo open the page in a new tab, you can just do a CTRL+click (on Windows and Linux) or CMD+click (on MacOS) on the link.\n\n\n<!-- Requirements -->\n# Requirements\n`Pyrustic` is a `cross platform` software suite. It should work on your computer (or nope, haha, versions under `1.0.0` will be considered `Beta` at best). It is built on [Ubuntu](https://ubuntu.com/download/desktop) with `Python 3.5`. `Pyrustic` comes with absolutely no warranty. So... \u00e0 la guerre comme \u00e0 la guerre.\n\nAs `Pyrustic` is built with `Python` for `Python developers` and also makes extensive use of `Tkinter`, you may need to learn [Python](#introduction-to-python) and [Tkinter](#introduction-to-tkinter).\n\n<!-- Installation -->\n# Installation\nBuilt on [Ubuntu](https://ubuntu.com/download/desktop) with `Python 3.5`. `Pyrustic` comes with absolutely no warranty and is available on the Python Package Index [PyPI](https://pypi.org/).\n\nIf you have never installed a package from PyPI, you must install the `pip` tool enabling you to download and install a PyPI package. There are several methods which are described on this [page](https://pip.pypa.io/en/latest/installing/).\n\n```bash\n$ pip install pyrustic\n\n$ pyrustic\nWelcome to Pyrustic Manager !\nVersion: 0.0.9\nType \"help\" or \"?\" to list commands. Type \"exit\" to leave.\n\n(pyrustic) \n```\n\nTo upgrade `Pyrustic`:\n\n```bash\n$ pip install pyrustic --upgrade --upgrade-strategy eager\n```\n\n\n<!-- Documentation -->\n# Documentation\nPyrustic is a work in progress. The versions of `Pyrustic` under `1.0.0` are aimed at an audience of early adopters. Check the FAQ and the Tutorial.\n\n## FAQ\nRead the [FAQ](https://github.com/pyrustic/pyrustic/blob/master/docs/faq/README.md#readme).\n\n## Tutorial\nRead the [Tutorial](https://github.com/pyrustic/pyrustic/blob/master/docs/tutorial/README.md#readme).\n\n## Guide\nRead the [Guide](https://github.com/pyrustic/pyrustic/blob/master/docs/guide/README.md#readme).\n\n## Glossary\nRead the [Glossary](https://github.com/pyrustic/pyrustic/blob/master/docs/glossary/README.md#readme).\n\n## Framework Reference\nRead the [Framework Reference](https://github.com/pyrustic/pyrustic/blob/master/docs/reference/README.md#readme).\n\n\n\n# External Learning Resources\nInteresting links below to get started with Python, Tkinter and SQLite.\n\n## Introduction to Python\n- [python-guide](https://docs.python-guide.org/intro/learning/).\n- [python tutorial](https://www.python-course.eu/python3_course.php). \n- freeCodeCamp on [Youtube](https://www.youtube.com/watch?v=rfscVS0vtbw).\n\n## Introduction to Tkinter\n- [tkdocs](https://tkdocs.com/).\n- [tkinter tutorial](https://www.python-course.eu/python_tkinter.php).\n- freeCodeCamp on [Youtube](https://www.youtube.com/watch?v=YXPyB4XeYLA).\n\n## Introduction to SQLite\n- [sqlitetutorial](https://www.sqlitetutorial.net/).\n- freeCodeCamp on [Youtube](https://www.youtube.com/watch?v=byHcYRpMgI4).\n\nNote: I am not affiliated with any of these entities. A simple web search brings them up.\n\n\n<!-- Philosophy -->\n# Philosophy\n<details>\n    <summary>Click to expand (or collapse)</summary>\n\n## Wisdom from Antiquity\n<!-- Image -->\n<div align=\"center\">\n    <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/diogenes.jpg\" alt=\"Diogenes\" width=\"650\">\n    <p align=\"center\">\n    By <a href=\"https://en.wikipedia.org/wiki/en:Jean-L%C3%A9on_G%C3%A9r%C3%B4me\" class=\"extiw\" title=\"w:en:Jean-L\u00e9on G\u00e9r\u00f4me\">Jean-L\u00e9on G\u00e9r\u00f4me</a> - <a href=\"https://en.wikipedia.org/wiki/en:Walters_Art_Museum\" class=\"extiw\" title=\"w:en:Walters Art Museum\">Walters Art Museum</a>: <a href=\"https://thewalters.org/\" rel=\"nofollow\"></a> <a rel=\"nofollow\" class=\"external text\" href=\"https://thewalters.org/\">Home page</a>&nbsp;<a href=\"https://art.thewalters.org/detail/31957\" rel=\"nofollow\"></a> <a rel=\"nofollow\" class=\"external text\" href=\"https://art.thewalters.org/detail/31957\">Info about artwork</a>, Public Domain, <a href=\"https://commons.wikimedia.org/w/index.php?curid=323523\">Link</a>\n    </p>\n</div>\n\n<br>\n\n> He owned a cup which served also as a bowl for food but threw it away when he saw a boy drinking water from his hands and realized one did not even need a cup to sustain oneself.</p>\n>\n>    --Mark, J. J. (2014, August 02). [Diogenes of Sinope](href=\"https://www.ancient.eu/Diogenes_of_Sinope/). Ancient History Encyclopedia. Retrieved from https://www.ancient.eu/Diogenes_of_Sinope/\n\n<br>\n\n## Advertisement from the twentieth century\n<!-- Image -->\n<div align=\"center\">\n    <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/ibm.jpg\" alt=\"IBM\" width=\"500\">\n    <p align=\"justify\">\n    By Cecile &amp; Presbrey advertising agency for International Business Machines. - Scanned from the December 1951 issue of Fortune by <a href=\"//commons.wikimedia.org/wiki/User:Swtpc6800\" title=\"User:Swtpc6800\">User:Swtpc6800</a> Michael Holley. The image was touched up with Adobe Photo Elements., Public Domain, <a href=\"https://commons.wikimedia.org/w/index.php?curid=17480483\">Link</a>\n    </p>\n</div>\n\n<br>\n\n> 150 Extra Engineers\n>\n> An IBM Electronic Calculator speeds through thousands of intricate computations so quickly that on many complex problems it's like having 150 EXTRA Engineers.\n>\n> No longer must valuable engineering personnel ... now in critical shortage ... spend priceless creative time at routine repetive figuring.\n>\n> Thousands of IBM Electronic Business Machines ... vital to our nation's defense ... are at work for science, industry, and the armed forces, in laboratories, factories, and offices, helping to meet urgent demands for greater production.\n>\n> -- IBM International Business Machines\n\n</details>\n\n\n<!-- License -->\n# License\n`Pyrustic` is licensed under the terms of the permissive free software license `MIT License`.\n\n<!-- Contact -->\n# Contact\n<details>\n    <summary>Click to expand (or collapse)</summary>\n\n<br>\n\nHi ! I'm Alex, operating by [\"Crocker's Rules\"](http://sl4.org/crocker.html)\n<!-- Image -->\n![email](https://raw.githubusercontent.com/pyrustic/misc/master/media/email.png)\n\n<!-- xoxo -->\n<details>\n    <summary></summary>\n        <br>\n        <br>\n        Congratz ! You just found the Easter Meggs !\n        <br>\n        <br>\n        <!-- Image -->\n        <div align=\"center\">\n            <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/meme_1.jpg\" alt=\"Meme\">\n            <br>\n            <br>\n            <br>\n            <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/meme_5.jpg\" alt=\"Meme\">\n            <br>\n            <br>\n            <br>\n            <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/meme_6.jpg\" alt=\"Meme\">\n            <br>\n            <br>\n            <br>\n            <img src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/meme_7.jpg\" alt=\"Meme\">\n            <br>\n            <br>\n            <br>\n        </div>\n</details>\n\n</details>\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Lightweight framework to develop, package, and publish Python desktop applications",
    "version": "0.1.5",
    "split_keywords": [
        "framework",
        "software-suite",
        "desktop-application",
        "tkinter",
        "sqlite",
        "json",
        "graphical",
        "event-notification",
        "publish-subscribe",
        "fetching-resources",
        "database-access-object",
        "theme",
        "dark-theme",
        "packaging"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "af571936129161f850e80416670371d5",
                "sha256": "1d644a15988bdf2f12dac91d2743c8e8d72cc1995a47a5e563ddaf993f19e658"
            },
            "downloads": -1,
            "filename": "pyrustic-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "af571936129161f850e80416670371d5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 95412,
            "upload_time": "2021-04-17T12:28:18",
            "upload_time_iso_8601": "2021-04-17T12:28:18.527373Z",
            "url": "https://files.pythonhosted.org/packages/26/c8/39fb33e45ac9f03c03bee7a74ec0a49af617b1cb82f08688d0ced880c588/pyrustic-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "eefc944e9823f6796aacf5dcb352aa50",
                "sha256": "de92e07005587eb5534a004e32dfc11dcbe28b32ae67735cfe88635bd812bb9e"
            },
            "downloads": -1,
            "filename": "pyrustic-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "eefc944e9823f6796aacf5dcb352aa50",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 77355,
            "upload_time": "2021-04-17T12:28:36",
            "upload_time_iso_8601": "2021-04-17T12:28:36.450080Z",
            "url": "https://files.pythonhosted.org/packages/a5/0c/64fefbd71e31996516bb23388709a7b93798ee1daf1638a45559584371bd/pyrustic-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-04-17 12:28:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "pyrustic",
    "error": "Could not fetch GitHub repository",
    "lcname": "pyrustic"
}
        
Elapsed time: 0.25707s