Skip to main content

Portable Framework for Building Applications - PFB-Toolkit

Project description

Portable Framework for Building Applications - PFB-Toolkit

Powered by NumFOCUS License - BSD 3-Clause

What is it?

portable-app-framework is a Python package that provides a toolkit to create portable applications.

Table of Contents

Main Features

Here are just a few of the things that portable-app-framework does.

Command Line Interface (CLI)

You can use the CLI to to create, manage and update applications

> portable-app-framework -h

usage: portable-app-framework [-h] {new,update} ...

Utils CLI for the afdd framework.

positional arguments:
  {new,update}
    new         Create a new application folder from template.
    update      Update README of an application.

options:
  -h, --help    show this help message and exit

Application class

A python class that helps to create a portable application. Once you created a new application in your project you can set up and run an application with the following lines of code

import pandas as pd
import brickschema
from portable_app_framework import Application

app = Application(
    metadata=brickschema.Graph(),
    app_name='app_name'
)
qualify_result = app.qualify()  # True/False
fetch_result = app.fetch()  # Dict of mapped variables
df = pd.DataFrame()  # get df according to your logic 
df_preprocess = app.preprocess(df)
final_result = app.analyze(df_preprocess)

Installation

The source code is currently hosted on GitHub at https://github.com/RobertoChiosa/portable-app-framework and the list of changes for each release can be found in the CHANGELOG.

The portable-app-framework package requires Python >= 3.9. The main dependencies are reported in the requirements.txt and in the setup.py file.

You can install the package in different ways depending on the level of usage you want to have.

  • From source
  • From test PyPI
  • From PyPI (not yet released)

From source

You can install the package from source by cloning the repository and running the following command:

git clone https://github.com/RobertoChiosa/portable-app-framework.git
cd portable-app-framework
pip install .

From test PyPI

You can install the latest test version from test PyPI with the following command:

pip install -i https://test.pypi.org/simple/ PFB-Toolkit==0.1.7

From PyPI

You can install the stable version from PyPI with the following command:

pip install portable-app-framework

Contributing

All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.

Most development discussions take place on GitHub in this repo, via the GitHub issue tracker.

If you are simply looking to start working with the portable_app_framework codebase, navigate to the GitHub "issues" tab and start looking through interesting issues.

Or maybe through using portable_app_framework you have an idea of your own or are looking for something in the documentation and thinking ‘this can be improved’...you can do something about it!

License

The present repository has been released under MIT LICENSE

Cite

Work on portable-app-framework started in 2021 as an internal project at BAEDA Lab to deploy energy management and information systems application in a most reliable way instead of solving implementation issues from scratch every time. We found that the framework enabled faster deployment of such solutions thanks to the builtin methods that allowed the analyst to skip ripetitive data integration tasks. Moreover allowed non analyst expert of metadata schema to exploit the power of such tools. So we decided to create this package to share our experience with the scientific community and not only.

To cite the package in publications use:

@software{portable-app-framework,
    author = {Roberto Chiosa},
    title = {Portable Framework for Building Applications - PFB-Toolkit},
    url = {}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pfb_toolkit-0.1.7.tar.gz (297.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pfb_toolkit-0.1.7-py3-none-any.whl (309.6 kB view details)

Uploaded Python 3

File details

Details for the file pfb_toolkit-0.1.7.tar.gz.

File metadata

  • Download URL: pfb_toolkit-0.1.7.tar.gz
  • Upload date:
  • Size: 297.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.5.0

File hashes

Hashes for pfb_toolkit-0.1.7.tar.gz
Algorithm Hash digest
SHA256 ae6af861caf2b098d630feefc4dee0f9136040eafba09dc1b09d09cacf24031d
MD5 f5a33b5601e19636350760ff70ef9f24
BLAKE2b-256 ede2ec1b716122fde1d2212c18cb0a228cb2c433773705c6dd930293b38ec6bc

See more details on using hashes here.

File details

Details for the file pfb_toolkit-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: pfb_toolkit-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 309.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.5.0

File hashes

Hashes for pfb_toolkit-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 40788f6f4b6fbddec168391a5a0ab5788393dacbca01d147758e7c31cbf8ff0b
MD5 0916becf28bc8b1b83125c46c38d3342
BLAKE2b-256 06eed3150d0281458642b1383b161bab787cc09c86fe89db1a03e0549c716fa0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page