Saravanan666/pypi-org huggingface dataset:
Package: pyKevo
pyKevo======This is a small little library that allows you to control your Kevo Smartlock from python code.  This is a stopgap until Kevo provides some APIs::Example-------.. code:: pythonimport pyKevofrontDoor = pyKevo('kevo_email@gmail.com','password')frontDoor.connect()print frontDoor.lockState()print frontDoor.unlockLock()Requirements------------* you require a Kevo Smartlock::* you require the Kevo Plus be installed and configured::* Your account credentials for `MyKevo https:mykevo.com//`.  You must have this registered::License-------This work pyKevo by Jeremy Foran is licensed under a `Creative Commons Attribution-ShareAlike 3.0 Unported License <http://creativecommons.org/licenses/by-sa/3.0/deed.en_US>`_.::
Package: pykevocontrol
==========pykevoplus3==========This is a Python3 fork of the original module for controlling Kwikset Kevo locks written by CSeelye.Per Cseelye:Kwikset does not provide an official API for their Kevo locks; I reverseengineered this module from the mykevo.com web app.To use this module you will need to have a `Kevo Plus`_ installed and aregistered account on `mykevo.com`_. You will need your mykevo.comcredentials to use this module.This module is published to `pypi`_ so you can install it simply via ``pip install pykevoplus``Usage=====The ``Kevo.GetLocks()`` function will attempt to scrape the mykevo.com website to find your locks; as of this writing it can find all of yourlocks, but scraping the HTML might break at any time if Kwikset changesthe website... code:: pythonfrom pykevoplus import Kevolocks = Kevo.GetLocks("username@email.com", "password123")for lock in locks:print(repr(lock))Output::KevoLock(name=Front Door, id=cca7cd1d-c1d5-43ce-a087-c73b974b3529, state=Locked)KevoLock(name=Back Door, id=c60130cd-8139-4688-8ba3-199276a65ad6, state=Locked)A better way is to explicitly instantiate a ``KevoLock`` object using theUUID of the lock. You can get the lock IDs manually by logging intomykevo.com, click Details for the lock, click Settings, the lock ID ison the right... code:: pythonfrom pykevoplus import KevoLocklock = KevoLock.FromLockID("cca7cd1d-c1d5-43ce-a087-c73b974b3529", "username@email.com", "password123")Locking and Unlocking'''''''''''''''''''''.. code:: pythonfrom pykevoplus import KevoLocklock = KevoLock.FromLockID(lock_id, username, password)lock.Unlock()print(lock.GetBoltState())lock.Lock()print(lock.GetBoltState())Output::UnlockedLockedMultiple operations in the same session'''''''''''''''''''''''''''''''''''''''The ``KevoLockSession`` context manager allows you to perform multipleoperations on a lock with a single auth session.. code:: pythonfrom pykevoplus import KevoLock, KevoLockSessionlock = KevoLock.FromLockID(lock_id, username, password)with KevoLockSession(lock):lock.Unlock()lock.Lock()Known Issues============* Error handling is extremely basic and needs much more work. Communication errors as well as lock bolt errors need to be addressed* Alpha support for Python3.. _Kevo Plus: http://www.kwikset.com/kevo/plus.. _mykevo.com: mykevo.com.. _pypi: https://pypi.python.org/pypi/pykevoplus
Package: pykevoplus
Python module for controlling Kwikset Kevo locksKwikset does not provide an official API for their Kevo locks; I reverse
engineered this module from the mykevo.com web app.To use this module you will need to have aKevo Plusinstalled and a
registered account onmykevo.com. You will need your mykevo.com
credentials to use this module.This module is published topypiso you can install it simply viapip install pykevoplusUsageTheKevo.GetLocks()function will attempt to scrape the mykevo.com web
site to find your locks; as of this writing it can find all of your
locks, but scraping the HTML might break at any time if Kwikset changes
the website.frompykevoplusimportKevolocks=Kevo.GetLocks("username@email.com","password123")forlockinlocks:printrepr(lock)Output:KevoLock(name=Front Door, id=cca7cd1d-c1d5-43ce-a087-c73b974b3529, state=Locked)
KevoLock(name=Back Door, id=c60130cd-8139-4688-8ba3-199276a65ad6, state=Locked)A better way is to explicitly instantiate aKevoLockobject using the
UUID of the lock. You can get the lock IDs manually by logging into
mykevo.com, click Details for the lock, click Settings, the lock ID is
on the right.frompykevoplusimportKevoLocklock=KevoLock.FromLockID("cca7cd1d-c1d5-43ce-a087-c73b974b3529","username@email.com","password123")Locking and UnlockingfrompykevoplusimportKevoLocklock=KevoLock.FromLockID(lock_id,username,password)lock.Unlock()printlock.GetBoltState()lock.Lock()printlock.GetBoltState()Output:Unlocked
LockedMultiple operations in the same sessionTheKevoLockSessioncontext manager allows you to perform multiple
operations on a lock with a single auth sessionfrompykevoplusimportKevoLock,KevoLockSessionlock=KevoLock.FromLockID(lock_id,username,password)withKevoLockSession(lock):lock.Unlock()lock.Lock()Known IssuesError handling is extremely basic and needs much more work. Communication errors as well as lock bolt errors need to be addressedNo unit tests yetCurrently only python 2.7 support
Package: pykevoplusnew
This is a fork of the below with fixes and performance improvements.This is a Python3 fork of the original module for controlling Kwikset Kevo locks written by CSeelye.Per Cseelye:Kwikset does not provide an official API for their Kevo locks; I reverse
engineered this module from the mykevo.com web app.To use this module you will need to have aKevo Plusinstalled and a
registered account onmykevo.com. You will need your mykevo.com
credentials to use this module.This module is published topypiso you can install it simply viapip install pykevocontrolUsageTheKevo.GetLocks()function will attempt to scrape the mykevo.com web
site to find your locks; as of this writing it can find all of your
locks, but scraping the HTML might break at any time if Kwikset changes
the website.This is broken as of 9 Sep 2019 due to recent CAPTCHA changes on the Kevo web site, however the KevoLock.FromLockID() method still works.frompykevoplusimportKevolocks=Kevo.GetLocks("username@email.com","password123")forlockinlocks:print(repr(lock))Output:KevoLock(name=Front Door, id=cca7cd1d-c1d5-43ce-a087-c73b974b3529, state=Locked)
KevoLock(name=Back Door, id=c60130cd-8139-4688-8ba3-199276a65ad6, state=Locked)A better way is to explicitly instantiate aKevoLockobject using the
UUID of the lock. You can get the lock IDs manually by logging into
mykevo.com, click Details for the lock, click Settings, the lock ID is
on the right.frompykevoplusimportKevoLocklock=KevoLock.FromLockID("cca7cd1d-c1d5-43ce-a087-c73b974b3529","username@email.com","password123")Locking and UnlockingfrompykevoplusimportKevoLocklock=KevoLock.FromLockID(lock_id,username,password)lock.Unlock()print(lock.GetBoltState())lock.Lock()print(lock.GetBoltState())Output:Unlocked
LockedMultiple operations in the same sessionTheKevoLockSessioncontext manager allows you to perform multiple
operations on a lock with a single auth sessionfrompykevoplusimportKevoLock,KevoLockSessionlock=KevoLock.FromLockID(lock_id,username,password)withKevoLockSession(lock):lock.Unlock()lock.Lock()Known IssuesError handling is extremely basic and needs much more work. Communication errors as well as lock bolt errors need to be addressedAlpha support for Python3
Package: pykeyatome
KeyAtome PyPiGet your energy consumption data from Atome, a Linky-compatible device made by Total/Direct-Energie.
A account can have several linky. With this library, you can address them one by oneInstallingpip install pykeyatomeUseThe__main__.pyis provided to show an example of use.4 types of function provided by client.py inAtomeClientclass:login : to be logged to the serverget_user_reference : to know which linky you have addressedget_live : to retrieve live statistics (instant power)get_consumption : to retrieve the consumption (by day over 3 months)AcknowledgmentsThanks to k20human for the original inspiration withhttps://github.com/k20human/domoticz-atomeThanks to reverse engineering of Atome IOS APP performed by BaQs.This project is a fork ofhttps://github.com/BaQs/pyAtome(seems to be unmaintained)Breaking changeV1.2.0Since this version PyAtomeError exception is no more used. Instead login returnFalseif error , and live/consumption returnNoneV1.3.0Login returnNoneif errorV2.0.01rst implementation of TotalEnergy V2 protocol : Login, Live, Day are available.V2.1.0Clean APIv1 i.e. no more period (day, week, month, year)
Package: pykeybase
pykeybaseOverviewPython client for Keybase.ioThe main repo can be found by joining the Keybase teammkbotTODOunit testsInstallation / UsageTo install use pip:$ pip install pykeybaseOr clone the repo:$ git clone keybase://team/mkbot/pykeybase
$ python setup.py installUsageimportpykeybasekb=pykeybase.KeybaseChat()...ContributingPlease join the Keybase teammkbotExampleAn example bot can be found in ./examples
Package: pykeycontrol
Start/stop functions/methods with hotkeys!$pipinstallpykeycontrolfrompykeycontrolimportStopStartfromtimeimportsleepdeftestest2():startstop=StopStart(hotkey_enable="ctrl+alt+p",hotkey_disable="ctrl+alt+o",hotkey_hc_exit="ctrl+alt+e",)startstop.reset_all_hotkeys().add_hotkeys()startstop.stop=Falsewhilestartstop.stopisFalse:print('baba')sleep(1)classNewClass:def__init__(self):self.startstop=StopStart(hotkey_enable="ctrl+alt+p",hotkey_disable="ctrl+alt+o",hotkey_hc_exit="ctrl+alt+e",)self.startstop.add_hotkeys()self.startstop.stop=Falsedeftestest(self):whileself.startstop.stopisFalse:print('baba')sleep(1)testest2()babababababababababaHARDCOREEXIT!FTW!Processfinishedwithexitcode1#"ctrl+alt+e"nac=NewClass()nac.testest()babababababababababababababababaDisabled!#"ctrl+alt+o"
Package: pykeydelivery
KeyDelivery API Python ClientThis is a Python client for the KeyDelivery API. It is a wrapper around theKeyDeliveryAPI, which allows you to track your shipments.It is not fully featured yet, but it is a good starting point.Installationpipinstallgit+https://kumig.it/kumitterer/pykeydeliveryUsagefromkeydeliveryimportKeyDeliveryapi=KeyDelivery("YOUR_API_KEY","YOUR_API_SECRET")# Find carrier by shipment numbercarrier_options=api.detect_carrier("YOUR_SHIPMENT_NUMBER")# Realtime trackingtracking=api.realtime("CARRIER_CODE","YOUR_SHIPMENT_NUMBER")LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: pykeygenerator
PykeygenA key generator made in pythonInstallationpip install pykeygeneratorUsageTo generate a key use the functiongenerate_key()Exampleimportpykeygenaskeykey.generate_key(length=10,include_letters=True,split=True,split_char="-",split_every=5)Output:Note: Output will be different each run9ZG9B-3890k-181AM-zGn78-Ofc7E-3j1XO-e2b6i-B516G-mg9m4-Chg4H-47r85-49P72-04PW4-wFh52-J1hd2-2qNs3-U3MuA-9C7SN-MJ6o9-e5IZMVaribles in functionlength (Int): Defines how long the key isinclude_letters (Bool): Defines if to include letters into the keysplit (Bool): Defines if to include separators in the key e.g0000-0000e.g without00000000split_char (Str): Defines what to split the key withsplit_every (Int): Defines how many characters per split e.g split_every = 200-00split_every = 500000-00000
Package: pykeymapper
PyKeyMapper is an unofficial plugin forinterception tools.
It provides a set of utilities to easily create executables which manipulate input to create advanced keyboard mappings.A set of preconfigured executables are supplied for inspiration and convenience,
but it is easy (and encouraged) to make your own.Preconfigured keyboard mappings can used via the command line interface:$pykeymapper--helpUsage: pykeymapper [OPTIONS] COMMAND [ARGS]...

  PyKeyMapper - A tool to customise your keyboard

Options:
  --help  Show this message and exit.

Commands:
  alt-brackets        Turn alt key into "Bracket Button"
  backslash2shift     Make backslash shift when pressed with another key
  forwardslash2shift  Make forward slash shift when pressed with another key
  special-space       Turn space into "Special Character key"CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: pyKeyring
A simple and secure tool to store passwordsIntrodutionpyKeyring is a tool to store encrypted passwords in a simple database file.InstallationUsing pipYou need Python 3 installed on your system.The latest release can be installed frompypivia pip:foo@bar:~#pipinstallpykeyringManual InstallationManual installation allows you to run the latest development version from this repository.pyKeyring depends onTinyDBandCriptographyto run.You can install pyKeyring with all dependecies by running:foo@bar:~#pythonsetup.pyinstallUsagepyKeyring is very simple to use.Create a databasefoo@bar:~$keyring.py-f/path/to/keyring.dbcreateThe default database file is named keyring.db. If you don’t use the -f argument, pyKeyring will use this name.
You can use the -F argument to specify the storage format, BSON (default) or JSON.Insert a passwordfoo@bar:~$keyring.pyaddpassword_labelThe password_label is used to label your password :)Get a passwordfoo@bar:~$keyring.pygetpassword_labelIf you don’t want to print the password in the terminal you can use the argument -c to copy the password to clipboard.foo@bar:~$keyring.pyget-cpassword_labelUpdate a passwordfoo@bar:~$keyring.pyupdatepassword_labelRemove a passwordfoo@bar:~$keyring.pyremovepassword_labelGenerate a random passwordfoo@bar:~$keyring.pygenerateIf you want to save this with a label you only need to use the -s (–save) argument.foo@bar:~$keyring.pygenerate-slabelYou can limit the characteres used to generate the password using the arguments:-l length, –length lengthThe length for the generated password [default=12]-u, –no-uppercaseDon’t use uppercase chars in the password-ll, –no-lowercaseDon’t use lowercase chars in the password-d, –no-digitsDon’t use digits in the password-p, –no-punctuationDon’t use punctuation chars in the password-e except_chars, –except-chars except_charsDon’t use these chars in the passwordTo generate an 8 digits password you can use:foo@bar:~$keyring.pygenerate-u-ll-p-l8
Package: pykeyset
pykeysetA Python-based tool to create pretty keyset layout diagrams using correct fonts and icons.WarningThis project is currently in the early stages of development.
If you do find any bugs, please report them on theGitHub repo.
In future I hope to stabilise this project, add more extensive support for different profiles, fonts, file formats, etc; and have a more extensive API.Feel free to help this project improve by opening bug reports, feature requests, etc; or contributing directly to the code by opening a pull request.Example outputPython APICurrently youcanusepykeysetdirectly as a Python module, but as it is still in early development the API will probably changea lotuntil a 0.5 release.
After that there will be a relatively stable API, so you don't need to mess around with.cmdlistfiles if you're familiar with Python.Installationpykeysetis available onPyPI. To install withpiprun:pip install pykeysetOr to install the latest source directly from GitHub, run:git clone https://github.com/staticintlucas/pykeyset.git pykeyset
cd pykeyset
pip install .This project usesMaturinas its build system.
To install this package locally for development, run:maturin developTo build the source distribution and wheel run:maturin build --releaseAdditionally, Linux releases should be compiled with--manylinux 2014ContributingpykeysetusesBlackandisortfor formatting, and all code must passFlake8's checks.
These are checked by GitHub on all pull requests.
To run these tools automatically when committing, install thepre-commithook in.pre-commit-config.yaml.LicenceThis project is licensed under either ofApache License, Version 2.0 (LICENCE-APACHEorhttp://www.apache.org/licenses/LICENSE-2.0)MIT license (LICENCE-MITorhttp://opensource.org/licenses/MIT)at your option.Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in
this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without
any additional terms or conditions.
Package: pykeyval
PyKeyValHeavily inspired bykeyvPyKeyVal is a key-value store that you can pack in a bag and take with you.InstallationTo install PyKeyVal, simply:pip install pykeyvalor from source:python setup.py installGetting Started>>>importpykeyval>>>kv=pykeyval.PyKeyVal(url='sqlite:///opt/myapp/db.sqlite')>>>kv.set('key','val')True>>>kv.get('key')'val'APIget(key)Returns the value set for keykey.set(key, val)Sets the keykeyto a valueval. Returns True.delete(key)Deletes the keykey. Returns True if the key existed.clear()Deletes all keys in the current name and namespace. Returns True.Storage BackendsPyKeyVal supports the following backends:DatabaseInterfaceRequired ArgumentsOptionsMemoryDictKeyValFileFileKeyValnamepathRedisRedisKeyValurl, namenamespaceSnowflakeSnowKeyValurl, namenamespaceSQLiteSQLiteKeyValurl, namenamespacePostgreSQLComing soonMySQLComing soonNamespacesPyKeyVal allows you to setup namespaces for database backends to prevent key collisions.SerializersPyKeyVal uses python's builtinjsonlibrary to perform data serialization across multiple backends for data consistency.You can hook up your own serializer by passing in a serializer class that implementsserializeanddeserialize:classPickleSerializer:defserialize(data):pickle.dumps(data)defdeserialize(data):pickle.loads(data)kv=PyKeyVal(serializer=PickleSerializer)
Package: pykf
pykf --- Japanese character encoding converter==============================================pykf is Japanese character encodings(ShiftJIS, JIS, EUC-JP) converterfor Python. See readme.sjis for detail.Installing==========run "python setup.py install".Copyright=========Japanese Kanji filter moduleCopyright (c) 2002-2010, Atsuo Ishimoto.  All rights reserved.Permission to use, copy, modify, and distribute this software and itsdocumentation for any purpose and without fee is hereby granted, provided thatthe above copyright notice appear in all copies and that both that copyrightnotice and this permission notice appear in supporting documentation, andthat the name of Atsuo Ishimoto not be used in advertising or publicitypertaining to distribution of the software without specific, written priorpermission.ATSUO ISHIMOTO DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NOEVENT SHALL ATSUO ISHIMOTO BE LIABLE FOR ANY SPECIAL, INDIRECT ORCONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OFUSE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OROTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE ORPERFORMANCE OF THIS SOFTWARE.---------------------------------------------------------------------This module is besed on kf.c written by Haruhiko Okumura.Copyright (c) 1995-2000 Haruhiko OkumuraThis file may be freely modified/redistributed.Original kf.c:http://www.matsusaka-u.ac.jp/~okumura/kf.html
Package: pykg2tbl
Py Project to extra table data from knowledge-graphs using sparql templatesStarted on 2022-01-04SetupStart using this project with poetry$makeinit# install dependencies$makeinit-dev# includes the previous + adds dependencies for developersBuild Docs$makedocsDevelopersRun Tests$maketest# to run all tests$PYTEST_LOGCONF=debug-logconf.ymlpythontests/test_demo.py# to run a specific test with specific logging$maketest-coverage# to run all tests and check the test coverageCheck the code-style and syntax (flake8, black, isort)$makecheck
Package: pykg-manager
PykgA package manager maintains local/remote dependencies for Fable Python projects.Write F# and run Python code!Installationpipinstallpykg-managerUsage>pykgnewmyproj&&cdmyproj# or mkdir myproj && cd myproj && pykg new .>cat./project.comf

project{name"fspy/testv"mirror"https://raw.githubusercontent.com/thautwarm/comf-index/main"versionv0.1.0buildernullsrc{"src/main.fs"}dep{name"lang/python"version^v3.8.0}dep{name"lang/net"version>=v5.0.0&&<v7.0.0}exe"src.main"}>catsrc/main.fs
moduleMainlet_=printfn"hello world">pykga# resolge packages, compile F# sources, and run mainhelloworld
Package: pykhet
IntroductionThe Khet board game logic and structures implemented in python. Also exposes adversarial search based algorithms.frompykhet.components.typesimportTeamColorfrompykhet.games.game_typesimportClassicGameimportrandomfrompykhet.solvers.minmaximportMinmaxSolver# Create a game with classic piece placementgame=ClassicGame()# Get all valid silver movessilver_moves=game.get_available_moves(TeamColor.silver)# Randomly Play Onegame.apply_move(random.choice(silver_moves))# Finish the turn by applying the lasergame.apply_laser(TeamColor.silver)# Use adversarial search to pick a movesolver=MinmaxSolver()move=solver.get_move(game,TeamColor.red)game.apply_move(move)game.apply_laser(TeamColor.red)SerializationThere is ample support to serializing the state of objects as dictionaries. Useful for easy storage as json.frompykhet.components.typesimportTeamColor,Piecefrompykhet.games.game_typesimportClassicGameimportrandomfrompykhet.solvers.minmaximportMinmaxSolver# Create a game with classic piece placementgame=ClassicGame()# Serialize the board (list of serialized piece positions, orientations, and colors)squares=game.to_serialized_squares()# Deserialize the boardGame.from_serialized_squares(squares)# Serialize a piecesp1=Piece(PieceType.scarab,TeamColor.silver,Orientation.down).to_dictionary()# Deserialize a piecesame_piece=Piece.from_dictionary(p1)Board LayoutThe khet board and piece layout is represented below:Adversarial SearchProvided is a very basic adversarial search algorithm that works with a low number of iterations.
Package: pykhipu
PyKhipuPaquete de Python para el API 2.0 del servicio de pagos Khipu🇬🇧 Python wrapper for the Khipu payment service API v2.0Sobre KhipuKhipupermite a las personas y empresas, pagar y cobrar electrónicamente usando sus propias cuentas corrientes o cuentas vista del banco, de manera fácil, rápida y segura.InstalaciónpipinstallpykhipuUsoIguala al API de Khipu en llamadas, ideal para portar código o en casos en que se busque más control sobre los resultados.frompykhipu.clientimportClientclient=Client(receiver_id='1234',secret='abcd')payment=client.payments.post('test','USD',100)print(payment.payment_url)
Package: pykickloc
pykicklocA python implementation of the KickLoc Intuitive distributed localization algorithm.Installpip3installpykicklocUsageTo create a beacon, create a KINode with the beacon's position and a standard deviation of 0:beacon=KINode(np.array([0,1,0]),0)To create an unknown node, create a KINode with no parameters:unknown=KINode()Whenever a distance update is received, call update on the local node to update the local node's position:node.update(neighbor_position,neighbor_std_dev,distance,distance_std_dev)If the nodes standard deviation was set to 0 (beacon), the update call will have no effect.ReferencesXiong, H., & Sichitiu, M. L. (2019).A Lightweight Localization Solution for Small, Low Resources WSNs.Journal of Sensor and Actuator Networks, 8(2), 26.Xiong, H.; Sichitiu, M.L.KickLoc: Simple, Distributed Localization for Wireless Sensor Networks.In Proceedings of the 2016 IEEE 13th International Conference on Mobile Ad Hoc and Sensor Systems (MASS), 10–13 October 2016; pp. 228–236.
Package: pykickstart
Pykickstart is a Python 2 and Python 3 library consisting of a data
representation of kickstart files, a parser to read files into that
representation, and a writer to generate kickstart files.Online documentationOnline documentation for kickstart and the Pykickstart library is available on Read the Docs:https://pykickstart.readthedocs.ioHow to generate the kickstart documentationThe pykickstart documentation is generated dynamically from the source code with Sphinx.To generate the documentation first make sure you have the Python bindings for Sphinx installed.
At least on Fedora this means installing thepython3-sphinxpackage.Then change directory to thedocsfolder:cd docsAnd generate the docs with:make html