Giter VIP home page Giter VIP logo

pyengineer's Introduction

Logo pyengineer

Build Status

pyengineer is a collection of scripts that are useful for electronics or hardware design. It is a wsgi-enabled Python application and has a GUI in your browser. The idea is that you can adapt the software to your workshop; for example, you tell pyengineer in the configuration file what resistors you have at hand (configuration.json) and then, inside the UI, you can for example say that you'd like to know what combination of parallel resistors (that you have at hand!) make a certain value.

One of the key concepts is that additional tools (i.e., "plugins") should be extremely simple to add and test. This is why they're all entirely self-contained in one single file each. There's some boilerplate code inside pyengineer which you should never have to touch because it should be sufficient to simply write everything in that one plugin file.

Starting it up

Just type

$ ./wsgi.py

On the command line and it should come right up:

 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 194-208-269

Then, go to the shown address and it should work.

Screenshots

Here are some screenshots of how PyEngineer looks like.

Writing a plugin

Writing a plugin is extremely easy: Just copy any ".py" file inside the "plugins/" directory to a file name you like. The only two things you will have to change is: The plugin _ID (which should be a random type-4 UUID that you create) and the placement inside the menu (_MENU_HIERARCHY). Then you're ready to go. pyengineer will auto-discover that new Python file in the plugins/ directory, integrate it into the menu and show it to you. You can also run it without and UI from the command line. This is useful for testing and all present plugins can do this:

$ python3 plugins/BasicDeunify.py
Request <default>:
{
    "input_value": "123.456k",
    "significant_digits": "4"
}
Response:
{
    "significant_digits": 4,
    "value": {
        "flt": 123456.0,
        "fmt": "123.5 k"
    }
}



123456.000 = 1.23e+05 = <strong>123.5 k</strong>

Dependencies

pyengineer depends on Python3, Mako and Flask.

License

GNU GPL-3.

pyengineer's People

Contributors

johndoe31415 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.