Saravanan666/pypi-org huggingface dataset:
Package: pybyte
A Python wrapper for the byte.co app.Python 3.6+ Required.Attention: This project was built in a weekend (mostly in the weekend that it was launched) as such this isnot production levelsoftware.Bytedoes nothave an official web API for developers, and most likely this will violate the ToS. Endpoints were found from the mobile app. As such, this wrapper can break at anytime. Do not rely on this wrapper.InstallationPyPi (Recommended)pip install pybyteGit repogit clone https://github.com/ms7m/py-byte
cd py-byte
python3 setup.py installUsage>>>importpybyte>>>>>>byte=pybyte.Byte("7WMRREHUQRH4DBK7DQCV7YWL44")>>>>>>byte.me().username'BotBottyFace220'>>>>>>my_timeline=byte.me().timeline()>>>>>># no rate limit protection yet. do it at your own risk!...>>>importtime>>>>>>forpostinmy_timeline.feed:...print(f"Caption:{post.caption}")...time.sleep(1)...print(f"Author:{post.author.username}")...print('\n')...Caption:Author:BotMcBotFace2300Caption:NiceAuthor:BotMcBotFace2300Caption:Author:BotMcBotFace2300Caption:Author:BotMcBotFace2300Caption:@peaksAuthor:BotMcBotFace2300# ...>>>>>>>>># Set your own username...>>>byte.me().username="BotMcBotFace2300">>>byte.me().username'BotMcBotFace2300'>>>>>># Get Posts...>>>post=byte.get_post("4ZPUKLE5OZB7JJGIBLVMIYQLBU")>>>post.caption'@peaks '>>>post.mentions[<pybyte.user.ByteUserobjectat0x10b33b550>]>>>>>># rebyte / like posts...>>>post.rebyte()True>>>post.like()True>>>>>># comment posts...>>>post.comment("Haha!")True>>>>>># Upload Posts...>>byte.upload('sample.mp4',caption="haha too funny!")>># Automatically generate a thumbnail>>byte.upload('sample.mp4',caption="haha too funny!",generate_thumbnail=True)>># Supply your own thumbnail!>>byte.upload('sample.mp4',caption="haha too funny",providedThumbnail="ultraCoolthumbnail.jpg")Example Script# Go through the global feed, comment and follow the author if they have < 10 followersglobal_feed=byte.me().global_feed()forpostinglobal_feed.feed:ifpost.author.followers['followerCount']>10:post.comment("Hey man, thanks for making me laugh!")post.like()else:continueExample Scripts# Go through your posts and comment any post older than 3 days and has less than 200 likesmy_posts=byte.me().posts()time_now=datetime.datetime.now()forpostinmy_posts.feed:if(time_now-post.date).days>3:ifpost.like_count<200:# i am not popular :(post.comment("this post isn't making me popular")else:post.comment("Woohoo! I'm very popular!")else:# not old enoughcontinueTestsComing soon
Package: pybyteblower
# ByteBlower python packageThis is a self contained, pip installable, python package to manage ByteBlower.It wraps together the MSI ByteBlower [Python API exe installation](https://setup.byteblower.com/software.html) and the
[ByteBlower Python Examples](https://github.com/excentis/ByteBlower_python_examples) into a standard python package.Note: the current version  supports only Windows and Python 2.7.## Loading and using the ByteBlower API
To load the ByteBlower API into python use following import statementfrom byteblowerll.byteblower import ByteBlower## SamplesThis repository contains all public available Python examples on how to use the ByteBlower Python API.### Folder structure
- back2back : examples between two ByteBlower ports.
- wireless_endpoint : Examples of using the Wireless Endpoint.
- server_management: No traffic is sent in these examples, they show how to get info from the ByteBlower Server and Meeting point.### Dependencies
- ByteBlower Python API :http://setup.byteblower.com/software.html#API- scapy:pip install scapywarning: when using scapy >2.4.0 on Windows 10: scapy cannot find NPCAP## Contact
[yoram@ignissoft.com](yoram@ignissoft.com)## Todo
* restructure to embed all samples under single sub-folder
* add basic unit tests to test the new package (not functionality)
* build setup with restriction for Windows / Python 2.7## Cheatsheet
* To register EP and get real-time statistics run the following command:ByteBlowerWirelessEndpoint.exe chassis-ipNote that this will open a new CMD window.[API documentation]([https://api.byteblower.com/python/byteblowerll.byteblower.ByteBlowerPort.html])
Package: pybythec
Installpip install pybythecSourceFind the latest version on github:https://github.com/glowtree/pybythecUsageCreate a pybythec.json file (or .pybythec.json) in the same directory as your c / c++ files.Here’s an example of what would be declared in pybythec.json if you were building an executable called Simple:{
  "target": "Simple",
  "binaryType": "exe",
  "sources": "main.cpp",
  "installPath": "."
}Then from the command line run:pybythecClean your project with:pybythec -clClean your project and all it’s dependencies with:pybythec -claLook at other exmples in the ‘./example’ directory to see how to build a static library, a dynamic library, and also an executable with library dependencies.pybythec assumes your already have the compiler / linker you want to use installed on your machine, currently gcc, clang and msvc are supported.When you install pybythec with pip it will add a file called .pybythecGlobals.json to your home directory.
This is a master file that declares all of your compiler and linker configurations.
You can edit this as needed for system-wide configuration.
If you want to move this file just be sure to have an environment variable called PYBYTHEC_GLOBALS point to the new location, for example:export PYBYTHEC_GLOBALS=/Users/user/dev/.myPybythecGlobals.jsonor for windows powershell:$env:PYBYTHEC_GLOBALS="C:/Users/user/dev/.myPybythecGlobals.json"There are up to 3 configuration files for any given build: global, project and local, where project overrides global, and local overrides both global and project.You can point pybythec to the project configuration file with the environment variable PYBYTHEC_PROJECT, for example:export PYBYTHEC_PROJECT=/Users/user/dev/myProject/.myProjectConfig.jsonpybythec will always look for your local file in your current directoy, and it must be called pybythec.json or .pybythec.json.You don’t need all 3 to build, in fact you could even put everything into one of those 3 files if you really wanted to.The configuration files allow for nested declarations so that you can get specific for your building needs.For example if I want a preprocessor declaration that’s project wide but only used when building on OS X for gcc, I can add the
following to my project level config file:"defines":
{
  "macOs": {
    "gcc" : "SOME_DEFINE"
  }
}You can use environmet variables in your configuration files simply by prepending with $, for example:"libPaths": "$SHARED/lib"You can have a python script automatically run after the build finishes, just be sure it’s called pybythecPost.py or .pybythecPost.py.Currently pybythec supports gcc/g++, clang/clang++ and msvcMore documentation to come!!!LicenseSee LICENSE
Package: pybytom
PyBytomPython library with tools for Bytom mainchain and sidechain protocols.Wiki DocumentationInstallation$ pip install pybytomIf you want to run the latest version of the code, you can install from git:$ pip install git+git://github.com/meherett/pybytom.gitFor the versions available, see thetags on this repository.DevelopmentWe welcome pull requests. To get started, just fork this repository, clone it locally, and run:$ pip install -e .[tests] -r requirements.txtTestingYou can run the tests with:$ pytestOr usetoxto run the complete suite against the full set of build targets, or pytest to run specific
tests against a specific version of Python.LicenseDistributed under theMITlicense. SeeLICENSEfor more information.
Package: pyc2e
A pure python interface for managing theCreatures Evolution Engine (c2e)with no external dependencies. Based off ofChris Double’s documentation of the c2e shared memory interface.This isn’t ready for real-world use yet. It might break your Creatures 3 / DS install.See bottom for more details.License TBD, probably a BSD or LGPL.How to inject CAOS from CLIIf you’re still sure you want to try it, clone the repo and:pip install -e .It supports reading from stdin,cat filename.cos | pyc2e injectfrom files,pyc2e inject --file filename.cosand arbitrary strings passed from the command line:pyc2e inject --caos "outs \"testing\""On windows, you might need to omit the escapes around the quotes  .Not ready for use in production, very WIPAt the moment, it only handles running & injectingCAOSon Windows.
It’s posted early because some developers need it. Much of the implementation may miss edge cases or just be ugly.Engine, config, and launch management for testing and fuzzing will be added later. Linux support will be
added later as well. Assume just about everything could change.Assumes Python 3.7+, but it might work on lower versions.
Package: pyc3
Python implementation of Jeff Heer's C3 color naming model,
outlined inJeffrey Heer and Maureen Stone. 2012.Color naming models for color selection, image editing and palette design.In Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI '12).Association for Computing Machinery, New York, NY, USA, 1007â1016.https://doi-org.ezp-prod1.hul.harvard.edu/10.1145/2207676.2208547
Package: pyc3dserver
PyC3DserverPython interface of C3Dserver software for reading and editing C3D motion capture files.DescriptionPyC3Dserver is a python inteface of C3Dserver using PyWin32.InstallationPyC3Dserver can be installed fromPyPIusingpipon Python>=3.7.pipinstallpyc3dserverPrerequisitesC3Dserver x64 edition (for Windows x64 platforms) installation:https://www.c3dserver.com/UsageMost of numerical inputs and outputs for PyC3Dserver will be in the form of NumPy arrays. So let's import NumPy module.importnumpyasnpAfter the installation of PyC3Dserver, you can import it as follows:importpyc3dserverasc3dYou can get the COM object of C3Dserver like this. You need to use this COM object while you are working with PyC3Dserver module.# Get the COM object of C3Dserveritf=c3d.c3dserver()Then, you can open a C3D file.# Open a C3D fileret=c3d.open_c3d(itf,"sample_file.c3d")Following functions are the most useful ones to extract the information from a C3D file. All the outputs are python dictionary types.# For the information of headerdict_header=c3d.get_dict_header(itf)# For the information of all groupsdict_groups=c3d.get_dict_groups(itf)# For the information of all markers(points)dict_markers=c3d.get_dict_markers(itf)# For the information of all forces/momentsdict_forces=c3d.get_dict_forces(itf)# For the information of all analogs(excluding or including forces/moments)dict_analogs=c3d.get_dict_analogs(itf)If you made any modification in the C3Dserver and want to save it, you need to use the following function explicitly.# Save the C3D file from C3Dserverret=c3d.save_c3d(itf,"new_file.c3d")After all your processes, it is recommended to close the C3D file from C3Dserver.# Close the C3D file from C3Dserverret=c3d.close_c3d(itf)ExamplesThere are more functions to get the information of individual markers and analogs. Also there are other functions for editing C3D files.
You can find some exampleshere.LimitationsPyC3Dserver tries to implement some useful functions using C3Dserver internally, but it does not cover full potential features of C3Dserver.
You can develop your own functions using the COM object of C3Dserver in Python.And PyC3Dserver is under heavy development so that many things may change during this period.DependenciesPyWin32: (GitHub,PyPI,Anaconda)NumPy: (Website,PyPI,Anaconda)SciPy: (Website,PyPI,Anaconda)ReferencesC3D.ORGC3Dserver.comMotion Lab Systems, Inc.Python IDE recommendationSpyderfor MATLAB friendly usersVisual Studio CodeAcknowledgementThis work was funded by the European Union's Horizon 2020 research and innovation programme (Project EXTEND - Bidirectional Hyper-Connected Neural System) under grant agreement No 779982.How to cite this workLicenseMIT
Package: pyc4
pyc4A Python extension to run C code in Python based onc4.Installpipinstallpyc4UseThe first argument is the code the rest are theargv>>>importc4>>>>>>c4.execute(r"""... int main() {...     printf("hi");...     return 0;... }... """)hiexitcode:0>>>c4.execute(r"""... int main(int argc, char **argv) {...     printf("%s", argv[0]);...     return 0;... }... ""","hi")hiexitcode:0
Package: pyC4API
pyControl4pyControl4Note: This is a fork of the original pycontrol4 library. This version is a forked version that supports room manipulationAn asynchronous library to interact with Control4 systems through their built-in REST API. This is known to work on controllers with OS 2.10.1.544795-res and OS 3.0+.For those who are looking for a pre-built solution for controlling their devices, this library is implemented in theofficial Home Assistant Control4 integration.Usage examplefrompyControl4.accountimportC4AccountfrompyControl4.directorimportC4DirectorfrompyControl4.lightimportC4Lightimportasyncioimportjsonusername=""password=""ip="192.168.1.25""""Authenticate with Control4 account"""account=C4Account(username,password)asyncio.run(account.getAccountBearerToken())"""Get and print controller name"""accountControllers=asyncio.run(account.getAccountControllers())print(accountControllers["controllerCommonName"])"""Get bearer token to communicate with controller locally"""director_bearer_token=asyncio.run(account.getDirectorBearerToken(accountControllers["controllerCommonName"]))["token"]"""Create new C4Director instance"""director=C4Director(ip,director_bearer_token)"""Print all devices on the controller"""print(asyncio.run(director.getAllItemInfo()))"""Create new C4Light instance"""light=C4Light(director,253)"""Ramp light level to 10% over 10000ms"""asyncio.run(light.rampToLevel(10,10000))"""Print state of light"""print(asyncio.run(light.getState()))ContributingPull requests are welcome! Please lint your Python code withflake8and format it withBlack.DisclaimerThis library is not affiliated with or endorsed by Control4.
Package: pyC4Room
pyControl4Note: This is a fork of the original pycontrol4 library. This version is a forked version that supports room manipulationAn asynchronous library to interact with Control4 systems through their built-in REST API. This is known to work on controllers with OS 2.10.1.544795-res and OS 3.0+.For those who are looking for a pre-built solution for controlling their devices, this library is implemented in theofficial Home Assistant Control4 integration.Usage examplefrompyControl4.accountimportC4AccountfrompyControl4.directorimportC4DirectorfrompyControl4.lightimportC4Lightimportasyncioimportjsonusername=""password=""ip="192.168.1.25""""Authenticate with Control4 account"""account=C4Account(username,password)asyncio.run(account.getAccountBearerToken())"""Get and print controller name"""accountControllers=asyncio.run(account.getAccountControllers())print(accountControllers["controllerCommonName"])"""Get bearer token to communicate with controller locally"""director_bearer_token=asyncio.run(account.getDirectorBearerToken(accountControllers["controllerCommonName"]))["token"]"""Create new C4Director instance"""director=C4Director(ip,director_bearer_token)"""Print all devices on the controller"""print(asyncio.run(director.getAllItemInfo()))"""Create new C4Light instance"""light=C4Light(director,253)"""Ramp light level to 10% over 10000ms"""asyncio.run(light.rampToLevel(10,10000))"""Print state of light"""print(asyncio.run(light.getState()))ContributingPull requests are welcome! Please lint your Python code withflake8and format it withBlack.DisclaimerThis library is not affiliated with or endorsed by Control4.
Package: pyC8
PyC8 SDKPython SDK for the Macrometa Global Data Mesh.🐍 Supported Python VersionsThis SDK supports the following Python implementations:Python 3.4 - 3.10⚙️ InstallationInstall from PyPi usingpip, a
package manager for Python.pip install pyC8🔐 AuthenticationCurrently, pyC8 supports API Key, JWT token, username and password authentication.
Preferred method needs to be passed during client creation. We highly recommend that you use API key or JWT token.You can create you test Macrometa account with thislink.After that you can check out ourgetting started code examples.🧰 Development environmentTo enable development environment position ourselves to project's root and run:pipinstall-rrequirements/dev.txt🧪 TestingEnd-to-end tests can be found in tests/.
Before first run create .env file in tests/.
In.envfile add variables:FEDERATION_URL="<your federation url>"FABRIC="<selected fabric>"API_KEY="<your api key>".envfile is in.gitignore.To run tests position yourself in the project's root while your virtual environment
is active and run:python-mpytestSince we have end-to-end test we use VCR package to record our response so tests can be faster in next iteration.
Example:pytest--record-mode=oncetest_redis.pyCassettes folder will be created with '.yaml'. Each test will have its own file.📐 Enable pre-commit hooksYou will need to install pre-commit hooks
Using homebrew:brewinstallpre-commitUsing conda (via conda-forge):condainstall-cconda-forgepre-commitTo check installation run:pre-commit--versionIf installation was successful you will see version number.
You can find the Pre-commit configuration in.pre-commit-config.yaml.
Install the git hook scripts:pre-commitinstallRun against all files:pre-commitrun--all-filesIf setup was successful pre-commit will run on every commit.
Every time you clone a project that uses pre-commit, runningpre-commit installshould be the first thing you do.👨‍💻 BuildTo build package we need to position ourselves to project's root and run:$pythonsetup.pybuild🪛 Upgradepipinstall--upgradepyC8📗 ExamplesYou can find code examples in ourgetting started collection.🆘 Macrometa SupportIf you have any trouble or need help while using SDK please contactsupport@macrometa.com.⚖️ LicenseThis library is distributed under the Apache License 2.0 license found in theLicense.📜 Code of ConductThis project and everyone participating in it is governed by theCode of Conduct.
By participating, you are expected to uphold this code. Please report unacceptable behavior toproduct@macrometa.com.
Package: pyca
PyCAis a fully functionalOpencastcapture agent written in Python.
It is free software licensed under the terms of theGNU Lesser General Public
License.The goals of pyCA are to be…flexible for any kind of capture devicesimplistic in code and functionalitynonrestrictive in terms of choosing capture softwarePyCA can be run on almost any kind of devices: A regular PC equipped with
capture cards, a server to capture network streams, small boards or embedded
devices like theRaspberry Pi.Python VersionsPyCA requires Python ≥ 3.6. Older versions of Python will not work.DocumentationFor a detailed installation guide, take a look at thePyCA documentation.Quick Install for Experienced UsersPyCA is configured to useFFmpegby default.
Make sure to have it installed or adjust the configuration to use something else.gitclonehttps://github.com/opencast/pyCA.gitcdpyCApython3-mvenvvenv../venv/bin/activatepipinstall-rrequirements.txtnpmcivimetc/pyca.conf<--Edittheconfiguration./start.sh
Package: pycabara
Pycabara is a Python implementation of Capybara, an acceptance test framework for web applications.The Pycabara source is found here:http://github.com/excellaco/pycabaraTo learn more about Capybara, start with the read-me file here:http://github.com/jnicklas/capybaraand check out the Capybara API here:http://jnicklas.github.io/capybara/’To view the license text:>>> import pycabara
>>> print pycabara.about()
Package: pycabehtml
Pycabehtml is a pymetrics parser that graphs the McCabe code complexity in an
html file. This is designed to be run under Jenkins/Hudson Continuous
Integration Server. Currently, Jenkins has integration for Pylint, Unittest,
and Code coverage.  As far as I know, there is no plugin available for managing
code complexity in Python. With PycabeHtml we fill the gap to track code
complexity in Jenkins by means of the Html plugin.
Some bibliography:http://artificialcode.blogspot.com/2009/08/10-ways-to-let-people-know-your-bad.htmlfrom Noah Gift.
Package: pycabinet
PyCabinet: directories as an objectA simple tool for file path management and discovery. The creation of a cabinet object from a file path allows the user to easily filter, index and slice the contents of any directory.Users of pandas should be familiar with the framework for filtering/slicing demonstrated in the examples below.How to InstallPyCabinet can be easily installed using pip:pipinstallpycabinetExamples>>>importpycabinetaspc>>>c=pc.cabinet(r'/Users/Nick/downloads')>>>files=c.files()>>>print(files['.zip'])['ParquetViewer_v1.1.0.0.zip','SQLiteStudio-3.2.1.zip']>>>print(files['.zip'][1])'SQLiteStudio-3.2.1.zip'>>>print(files['Par'])'ParquetViewer_v1.1.0.0.zip'>>>files=c.files(full_path=true)>>>print(files['.zip'])['/Users/Nick/downloads/ParquetViewer_v1.1.0.0.zip','/Users/Nick/downloads/SQLiteStudio-3.2.1.zip']Future DevelopmentThe initial plan is to keep PyCabinet doing a simple job; allow users to find file paths of specific files and folders in a systematic and userfriendly way.If it proves popular and there is demand for it, functionality could be expanded to include the ability to manipulate folders and files.
Package: pycac
PyCACPyCAC, the concurrent atomistic-continuum (CAC) simulation environment, is a software suite that allows users to run CAC simulations and analyze data. It comprises a Python GUI for interaction with and creation of CAC simulation projects, and the CAC simulator itself.It is developed by the group ofProf. David L. McDowellat the Georgia Institute of Technology, in collaboration with the group ofProf. Youping Chenat the University of Florida and the group ofProf. Liming Xiongat the Iowa State University. The code development was sponsored byNational Science FoundationGeorgia Institute of Technology, CMMI-1232878University of Florida, CMMI-1233113Iowa State University, CMMI-1536925Department of Energy, Office of Basic Energy SciencesUniversity of Florida, DE-SC0006539DocumentationFor configuration and usage instructions, please see thePyCAC websiteLicenseThe GUI wrapper for CAC is released under the Apache Software License v2.0The CAC simulator package must be requested separately, and is released under the following terms:
Copyright (c) 2017-2018 Georgia Institute of Technology. All Rights Reserved.
NO public distribution.NoteThis source code is provided as is, with no warranties or representations of accuracy or suitability for any application, and with no expectation of user support. Some information is provided in thePyCAC user's manual. Please note thecitation requestsfor any derivative works based on application of this package.
Package: pycacd
pycadcThe pycadc library is made to monitor the changes of a sql server database by activating the CDC (Changes Data Capture).Todo ListImplement RabbitMQ to send the information through a message queuePublish the library in pipComplete all information in theREADME.mdfileCreate a message body for mysql trackerComplete the unit test⌨️ with ♥️ byLuis Manuel Torres Trevino
Package: pycache
##PyCachePycache is a LRU Implemented with Linked Stack.https://en.wikipedia.org/wiki/Cache_algorithms#LRU###Installation:```git clone https://github.com/plasmashadow/pycachecd pycachepython setup.py install```###Usage:You can use pycache as both object as well as a decorator```from pycache import cachedfrom pycache import Cachecache = Cache()@cached(cache)def add(x,y):return x+y#operation will be computed and stored on cacheprint add(2,3)#will be retrived from cacheadd(2,3)# As a cache objectc = Cache()c.insert(key, value)c.update(key, value)c.fetch(key)```###LicenseMIT