GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SpectrumIO/python-krux-stdlib: Standard libraries for Python development done the Krux Way

This repository was archived by the owner on Feb 25, 2023. It is now read-only.
BranchesTags
Open more actions menu
 
 

Latest commit

 

History

278 Commits
278 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
krux
krux
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.pylintrc
.pylintrc
 
 
CHANGES.md
CHANGES.md
 
 
LICENSE
LICENSE
 
 
Pipfile
Pipfile
 
 
README.md
README.md
 
 
example.py
example.py
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 

Repository files navigation

krux-stdlib

Code Climate

Using python-krux-stdlib

  1. Add the Krux pip repository and python-krux-stdlib to the top of your project's requirements.pip file:

    ### Optional - also available on PyPi
    --extra-index-url https://staticfiles.krxd.net/foss/pypi/
    krux-stdlib==2.1.1
    
  2. Code up your app. First, define your class to inherit from krux.cli.Application. In the __init__() method, initialize the superclass, passing in whatever parameters you need. Minimally:

    class TestLoggingApp( krux.cli.Application ):
        def __init__(self):
            super(TestLoggingApp, self).__init__(name='testloggingapp', syslog_facility='local0')
    
  3. Now you are ready to define any methods you might need under your Application() subclass:

     def foo_things(self):
         self.logger.debug("just called foo_things()")
    
  4. Finally, call the whole kit from main():

     def main():
         app = TestLoggingApp()
         app.logger.debug("this is a debug level message")
         app.foo_things()
    

Developing python-krux-stdlib

Prerequisites:

  • Python 3.6 or above.
  • pipenv
  1. Clone the repository.

    git clone [email protected]:krux/python-krux-stdlib.git && cd python-krux-stdlib
    
  2. Set up a virtual environment.

    pipenv install --develop
    
  3. Hack away! Make sure to add unit tests.

  4. Run tests.

    pipenv run python setup.py test
    
  5. To cut a release, update the VERSION in krux/__init__.py and push to GitHub. Jenkins will build and upload the new version to the Krux python repository, as well as tagging the release in git.

About

Standard libraries for Python development done the Krux Way

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.