Giter Site home page Giter Site logo

dipvendor's Introduction

DIPvendor

A simple database and python script to register vendor IDs.

A Minimally Viable Vendor Registration System

The JSON file is the master file that keeps track of DIP maker vendor IDs. Please only register what you need.

In brief:

  • Clone this repository to your computer
  • run the genID.py script
  • create a pull request to update

The simple python script can be called from the terminal. Call script with three arguments: contact email address, name of company, and, optionally, a preferred 32-bit vendor ID number in hex format. For example:

$ python genID.py [email protected] "DIP Makers Inc." 0x00000001'

The script will check if the email is a valid format, but will not attempt any further validation. If you provide a vendor ID, the script will make sure it is not already taken. If it is, it will offer to randomly generate one for you.

An example session:

$ python genID.py [email protected] "DIP Makers Inc." 0x009d011a
 :( Your chosen Vendor ID 0x009d011a is already taken.
 > Type "e" to exit or "g" to generate a new ID: g
 + Your new vendor ID is: 0x20bc2e55
 :) vendorDB updated

Once the script is updated, create a pull request on this repo so we can officially add the Vendor ID.

dipvendor's People

Contributors

nyboer avatar sloopymalibu avatar

Watchers

 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.