Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Soigne - Python application framework

Build your first elegant python app!

Installation

To install the executioner you only need to register the command indicated below. Then you can start writing your application by connecting the modules of this framework.

pip install soigne

Your first hangman app

After installing the framework, you need to create the file __main __.py in the folder of your project and place the code from the example below in it.

import sys
import os

from soigne.container import App
from soigne.components.configs import Configs
from soigne.components.l10n import Translation

from myapplication import MyApplication


def register_configs(app, configs, *args):
    """ Configs register method.
    """

    return configs(app.path('configs/')).read()


def register_translator(a, translator, *args):
    """ Translator register method.
    """

    return translator(app.path('resources/lang/'), app.get('config').l10n['default_language'])


def application_build(app, event):
    """ Application build event handler.
    """

    pass


app = App(os.path.dirname(__file__))  # Init our app and set base constants
app.NAME = 'application_name'
app.DESCRIPTION = 'Application description'
app.URL = ''
app.VERSION = '0.1.0.dev1'

# Register some application components
app.register('config', Configs, registerer=register_configs)
app.register('translator', Translation, registerer=register_translator)
app.register('component', 'my_application', MyApplication)

# Register some event handlers
app.dispatch('application_build', application_build)

# Build and start our app. 
# As the first parameter of the application start method, you need to specify the name of the component that will process the logic of
# your application. Next parameters is optional and need to starting up your app.
app.start('my_application', sys.argv)

Dependencies

Hangman is obviously strongly dependent on pygame-2.0 and Python-3.8.

License

This framework is distributed under GNU General Public License v3.0. More in LICENSE file.

Metadata

Release files for soigne 0.1.8b6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for soigne 0.1.8b6
File Interpreter ABI Platform
soigne-0.1.8b6-py3-none-any.whl Python 3 none any Details

Release files / soigne-0.1.8b6-py3-none-any.whl

Download URL soigne-0.1.8b6-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d0cbec5cad462260dee7b43980114e1bab9b6166e84188c3bd20289d88c8387
BLAKE2b-256 checksum
How to use checksums
8aca50df922e2ff1a5fd2236701cae0f16bb79ac27b508b07f391de835048da5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page