Skip to main content

A function-managing package for evolving inputs and outputs

Project description

porchlight

porchlight is a function management suite that manages common inputs and outputs of methods and/or functions.

This package's original intent was to be a part of a modular scientific package yet to be released. Rather than isolating this method to a single model, the already-developed work has been modified to stand alone as a package.

porchlight does not have any dependencies outside of the standard CPython library. Please note that porchlight requires Python 3.9+.

Installation

You can install porchlight by cloning this repository to a local directory, opening a command line, and running:

cd porchlight
python -m pip install .

Usage

The main object used in porchlight is the porchlight.Neighborhood object. This groups all functions together and keeps track of call order and parameters.

import porchlight


# We call a porchlight.Neighborhood object to instantiate it with no functions
# yet.
neighborhood = porchlight.Neighborhood()

# To add a function, we dimply define it and pass it to porchlight.
def increment_x(x: int, y: int) -> int:
    x = x * y
    return x

neighborhood.add_function(increment_x)

# The neighborhood object inspects the function, finding input and output
# variables if present. These are added to the collections of functions and
# parameters.
print(neighborhood)  # porchlight.Neighborhood has a pretty-print string.

Although this is the current extent of documentation, there should be some more complete doncumentation within the next couple weeks/months.

Documention

In prep.

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

porchlight-0.0.1.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

porchlight-0.0.1-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file porchlight-0.0.1.tar.gz.

File metadata

  • Download URL: porchlight-0.0.1.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for porchlight-0.0.1.tar.gz
Algorithm Hash digest
SHA256 870fa94cbdf68c9b40897d420f25a69503fee18f3897391d0f359784b06f7f74
MD5 d80f9d0324ae22cd6fa881d48762ae4b
BLAKE2b-256 74f8b454bd2556a915e700bd54d8f2b2ffe075c7db416fc0bf5373d308f77245

See more details on using hashes here.

File details

Details for the file porchlight-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: porchlight-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for porchlight-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 621e4aa3eb2a25ce06b20d219a730b931e4beb533e5197bb55a1257a5ea825d6
MD5 da600c6a327319e10443f38547d90811
BLAKE2b-256 8bfa14f0029cac40d230eb3ca2f928d8086d373f517dee0441a30a4018fe6dfa

See more details on using hashes here.

Supported by

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