Giter Site home page Giter Site logo

pybundle's Introduction

GuardRails badge

PyBundle

Set directory paths and file names for executable bundles created with Python.

Package features:

  • 'frozen' environment resource management
  • Frozen environment validation

Propose

PyBundle was developed to handle paths while running from a bundled executable in a frozen environment. Replaces functions that were repeated across projects and creates an lightweigth dependency.

Usage

Check if you are running in a frozen environment (useful for 'dev' vs. 'production' configs), adjust paths for use in executables, manage resources in an executable file.

Functions

Name Description
frozen() Determine if script is running in a frozen environment.
bundle_dir() Handle resource management within an executable file.
resource_path() Adjust path for executable use in executable file.
from PyBundle import frozen, bundle_dir, resource_path

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

In order to utilize this package/repository you will need to have a Python (only tested on 3.6+ as of now) interpreter installed on your machine.

PyPi installation

pip install PyBundle

PyPi update

pip install --upgrade --no-cache-dir PyBundle

Project Structure

PyBundle
├── PyBundle.py
├── __init__.py
└── _version.py

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Stephen Neal - Initial work - PyBundle

License

This project is licensed under the Apache License - see the LICENSE.md file for details

pybundle's People

Contributors

guardrails[bot] avatar sfneal avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

whigg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.