Git Product home page Git Product logo

ibutton2uid_lib's Introduction

ibutton2uid

Takes a user's iButton and returns their uid. Optionally also takes a url to use for the actual ibutton2uid operation.

james:tmp/ $ source .venv/bin/activate
(.venv) james:tmp/ $ pip install ibutton2uid
Collecting ibutton2uid
  Using cached ibutton2uid-1.0.0-py2.py3-none-any.whl
Collecting requests (from ibutton2uid)
  Using cached requests-2.12.3-py2.py3-none-any.whl
Installing collected packages: requests, ibutton2uid
Successfully installed ibutton2uid-1.0.0 requests-2.12.3
(.venv) james:tmp/ $ python
Python 3.4.5 (default, Nov 30 2016, 17:35:49)
[GCC 5.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ibutton2uid import ibutton2uid
>>> ibutton2uid("")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/james/projects/tmp/.venv/lib/python3.4/site-packages/ibutton2uid.py", line 6, in ibutton2uid
    raise Exception("Zero or more than one result for iButton %s" % ibutton)
Exception: Zero or more than one result for iButton
>>> ibutton2uid("3D00244B9CCE")
'jmf'
>>>
(.venv) james:tmp/ $

ibutton2uid_lib's People

Contributors

csssuf avatar

Stargazers

 avatar  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.