Saravanan666/pypi-org huggingface dataset:
Package: pykismet3
pykismet3=========A Python 3 Akismet client library.## Supported APIThe Following Akismet API Calls are currently supported:* Comment Check* Submit Ham* Submit Spam## Unsupported APIThe following Akismet API Calls are not yet supported:* Key Verification## Installation1. Signup for Akismet and get yourself an API key at http://akismet.com/plans/2. Install this library:pip install pykismet33. Make some calls to Akismet (see example below to get started)## ExampleImport and instantiate Pykismet.from pykismet3 import Akismetimport osa = Akismet(blog_url="http://your.blog/url",user_agent="My Awesome Web App/0.0.1")a.api_key="YOUR_AKISMET_API_KEY"### Comment Checka.check({'user_ip': os.environ['REMOTE_ADDR'],'user_agent': os.environ['HTTP_USER_AGENT'],'referrer': os.environ.get('HTTP_REFERER', 'unknown'),'comment_content': 'I LIEK YOUR WEB SITE','comment_author': 'Comment Author','is_test': 1,})### Submit Hama.submit_ham({'user_ip': os.environ['REMOTE_ADDR'],'user_agent': os.environ['HTTP_USER_AGENT'],'referrer': os.environ.get('HTTP_REFERER', 'unknown'),'comment_content': 'I LIEK YOUR WEB SITE','comment_author': 'Comment Author','is_test': 1,})### Submit Spama.submit_spam({'user_ip': os.environ['REMOTE_ADDR'],'user_agent': os.environ['HTTP_USER_AGENT'],'referrer': os.environ.get('HTTP_REFERER', 'unknown'),'comment_content': 'I LIEK YOUR WEB SITE','comment_author': 'Comment Author','is_test': 1,})## DocumentationThe examples above show you pretty much everything you need to know.For a full list of supported parameters for each API call, see http://akismet.com/development/api/The code is only ~150 lines long anyway, so just look at '''pykismet.py''' if you aren't sure about something.## BugsPatches to fix bugs and implement missing features welcome! Please make a pull request.
Package: pykiss
pykissPython serial KISS implementation.This package is initially made for controlling the Nanoavionics Sat2RF1 satellite radio module, and in its current state it does not fully implement the full KISS spec, though this is planned for future releases.It providesReading data from interface, returned as a tuple (header, payload)Writing data to interface with a custom header, allows passing any command to the interfaceEscaping/restoring special characters as per the KISS specCurrently it does not provideAnything else
Package: py-KISSmetrics
KISSmetrics tracking API wrapper for PythonA description of the API can be found at:https://support.kissmetrics.io/reference#api-specifications-1Support for:Python 3.5, 3.6Also tested against:PyPy (Generally the latest release)Documentation:http://py-kissmetrics.readthedocs.org/Using this library>>> import KISSmetrics
>>> KM = KISSmetrics.Client(key='mySuperSecretApiKey')
>>> KM.record('bob@bob.com', 'Viewed Homepage')
<urllib3.response.HTTPResponse object at 0x...>
>>> KM.record('bob@bob.com', 'Signed Up', {'Plan' : 'Pro', 'Amount' : 99.95})
<urllib3.response.HTTPResponse object at 0x...>
>>> KM.record('bob@bob.com', 'Signed Up', timestamp=1234567890)
<urllib3.response.HTTPResponse object at 0x...>
>>> KM.set('bob@bob.com', {'gender': 'male'})
<urllib3.response.HTTPResponse object at 0x...>Compatibility clientA compatibility client is provided which is intended to act like the previous generation of Python libraryhere.This interface is provided for compatibility only, and will not be supported in the future.Example Usage>>> from KISSmetrics import KM
>>> km = KM("this is your API key")
>>> km.key
'this is your API key'
>>> km.identify('bob@bob.com')
>>> km.identity
'bob@bob.com'
>>> km.check_id_key() # this will throw exception if key or identity is None
>>> km.record('Viewed Homepage')
>>> km.record('Signed Up', {'Plan' : 'Pro', 'Amount' : 99.95})
>>> km.record('Signed Up', {'_d' : 1, '_t' : 1234567890})
>>> km.set({'gender' : 'male'})
Package: pykit
pykitPykit is a package for a pluggable intermediate representation, that
is higher level and easier to use than LLVM. It allows pluggable compiler
optimizations and custom opcodes, and aims to abstract over backends
(e.g. C or LLVM), IR serialization and caching, debug information.
exception handling and potentially GC root finding.Pykit ships with a builtin set of opcodes, and has an IR verifier and
interpreter for that set of operations. The IR is a function of basic
blocks containing instructions (operations), similar to three-address
code. It supports builtin variables and explicit SSA instructions
through the dataflow and reg2mem passes.Although pykit ships with builtin opcodes and passes, one is entirely
free to use a custom set of opcodes, types and transformations.pykit:lowers and optimizes intermediate codetries to be independent from platform or high-level languagecan generate LLVM or C89 out of the boxtodo: finish C codegen :)supports pluggable opcodeshas a number of builtin optimizations and transformationshas a builtin set of goodies to work with the IRbuilder, interpreter, verifiersupports float and complex math functions through llvmmathpykit is inspired by VMKit and LLVM.Websitehttp://pykit.github.io/pykit/Documentationhttp://pykit.github.io/pykit-doc/
Package: pykitables
pykitablesA python package for getting neatly formatted tables from any Wikipedia page using beautifulsoup4.##Installation
'''pip install pykitables'''Usagetables = pykitables.get_tables("https://en.wikipedia.org/wiki/Template:COVID-19_pandemic_data/United_States_medical_cases")
    #Returns a list of Wikitable objects
    csv1 = tables[0].to_csv()
    #Returns the csv for the first table in the article
Package: pykit-bsc
Table of ContentNameStatusDescriptionModule ListInstallUsageConfigurationSupported configTestFor developerConfigHow it worksHow to useAuthorCopyright and LicenseNamepykit:
A collection of python libs those are used in project s2: Storage-Service at
baishancloud.comStatusThis library is in beta phase.It has been used heavily in our object storage service, as a foundamental
library of our devops platform.DescriptionModule ListThere is aREADME.mdfor each module.namedescriptionargcheckerValidates arguments against the schemaawsAWS error codes and so oncacheableCache data which access frequentlycachepoolReusable object cache in processclusterSome helper function for the server in a clusterdaemonizeStart, stop or restart a daemon processdictutilDictionary helper utilityetcdetcd clientfsutilFile-system UtilitiesheapMin heaphttpHTTP/1.1 clienthumannumConvert number to human readable number stringjobqProcess serial of input elements with several functions concurrently and sequentiallylogutilUtility functions to create logger or make log messagemimeUtility functions to handle mime typemodutilSubmodule UtilitiesmysqlconnpoolMysql connection pool with MySQLdb in pythonmysqlutilMysql related datatype, operationsnetNetwork utilityportlockcross process lockpriorityqueuePriority queueprocUtility to create sub processrangesetSegmented range.ratelimiterrate limiterredisutilFor using redis more easily.shellSet different command arguments to execute different functionsstrutilA collection of helper functions used to manipulate stringthreadutilUtility functions for better management of threadstimeutilSupport specify time format output and get current ts, ms, us api etcutfjsonForcejson.dumpandjson.loadinutf-8encodingutfyamlForceyaml.dumpandyaml.loadinutf-8encodingwsjobdJob daemon based on websocket protocolzkutilUtility functions for zookeeperModule dependencyInstallJust clone it and copy it into your project source folder.cd your_project_folder
git clone https://github.com/baishancloud/pykit.gitUsagefrom pykit import jobq

def add1(args):
    return args + 1

def printarg(args):
    print args

jobq.run([0, 1, 2], [add1, printarg])
# > 1
# > 2
# > 3ConfigurationSeeconfig.mdTestRun one of following to test all, a module, a TestCase or a function../script/t
./script/t zkutil
./script/t zkutil.test
./script/t zkutil.test.test_zkutil
./script/t zkutil.test.test_zkutil.TestZKUtil
./script/t zkutil.test.test_zkutil.TestZKUtil.test_lock_idSeeDetailsFor developerThere are several scripts for developers.
Seescript.AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: pykit-bsc-s2
Table of ContentNameStatusDescriptionModule ListInstallUsageConfigurationSupported configTestFor developerConfigHow it worksHow to useAuthorCopyright and LicenseNamepykit:
A collection of python libs those are used in project s2: Storage-Service at
baishancloud.comStatusThis library is in beta phase.It has been used heavily in our object storage service, as a foundamental
library of our devops platform.DescriptionModule ListThere is aREADME.mdfor each module.namedescriptionargcheckerValidates arguments against the schemaawsAWS error codes and so onawssignSign a request by using aws signature version 4cacheableCache data which access frequentlycachepoolReusable object cache in processcgrouparchBuild cgroup directory tree, add set cgroup pidclusterSome helper function for the server in a clustercsvutilUtility functions for CSV file loading and conversiondaemonizeStart, stop or restart a daemon processdictutilDictionary helper utilityectypesUtility functions for the serveretcdetcd clientfsutilFile-system UtilitiesheapMin heaphttpHTTP/1.1 clienthumannumConvert number to human readable number stringjobqProcess serial of input elements with several functions concurrently and sequentiallyjobschedulerRun jobs at certain timelogcollectorCollect logs of interest locallylogutilUtility functions to create logger or make log messagemimeUtility functions to handle mime typemodutilSubmodule UtilitiesmysqlconnpoolMysql connection pool with MySQLdb in pythonmysqlutilMysql related datatype, operationsnetNetwork utilityportlockcross process lockpriorityqueuePriority queueprocUtility to create sub processrangesetSegmented range.ratelimiterrate limiterredisutilFor using redis more easily.shellSet different command arguments to execute different functionsstrutilA collection of helper functions used to manipulate stringthreadutilUtility functions for better management of threadstimeutilSupport specify time format output and get current ts, ms, us api etcutfjsonForcejson.dumpandjson.loadinutf-8encodingutfyamlForceyaml.dumpandyaml.loadinutf-8encodingwsjobdJob daemon based on websocket protocolzktxTransaction implementation on ZookeeperzkutilUtility functions for zookeeperModule dependencyInstallJust clone it and copy it into your project source folder.cd your_project_folder
git clone https://github.com/baishancloud/pykit.gitUsagefrom pykit import jobq

def add1(args):
    return args + 1

def printarg(args):
    print args

jobq.run([0, 1, 2], [add1, printarg])
# > 1
# > 2
# > 3ConfigurationSeeconfig.mdTestRun one of following to test all, a module, a TestCase or a function../script/t
./script/t zkutil
./script/t zkutil.test
./script/t zkutil.test.test_zkutil
./script/t zkutil.test.test_zkutil.TestZKUtil
./script/t zkutil.test.test_zkutil.TestZKUtil.test_lock_idSeeDetailsFor developerThere are several scripts for developers.
Seescript.AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: pykite
PyKite: A research and development initiative for crafting a Python-centric micro framework.FeaturesRoute Definition:Define routes using the@app.route(path)decorator.HTTP Request Handling:Create handler functions for each route to process and respond to incoming HTTP requests.Development Server:Start a development server with a single command, making it easy to test your application locally.Basic Error Handling:Includes a default 404 response for routes that are not found.InstallationTo get started with PyKite, follow these steps:pipinstallpykiteRun the applicationCreate a Python script for your web application using PyKite. Define routes and handlers as needed.Run your application using therunmethod:frompykiteimportPyKitefrompykite.http.responseimportResponse# Create a PyKite applicationapp=PyKite(debug=True)# Define a route for the '/' path@app.route('/')defindex(request,response):"""Respond with a JSON object containing the message "Hello, World!" to all requests to the '/' path."""data={"message":"Hello, World!"}response=Response(data=data,status=200)returnresponse@app.route('/hello/{name}')defhello(request,response,name):""" Took a name from the URL and responds with a friendly greeting in JSON."""data={"message":f"Hello,{name}"}response=Response(data=data,status=200)returnresponse# Run the applicationif__name__=="__main__":app.run()Access your application in a web browser athttp://localhost:8000.LicenseThis project is licensed under theMIT License.
Package: pykitml
pykitml (Python Kit for Machine Learning)Machine Learning library written in Python and NumPy.Installationpython3 -m pip install pykitmlDocumentationhttps://pykitml.readthedocs.io/en/latest/Demo (MNIST)Trainingimportos.pathimportnumpyasnpimportpykitmlaspkfrompykitml.datasetsimportmnist# Download datasetif(notos.path.exists('mnist.pkl')):mnist.get()# Load datasettraining_data,training_targets,testing_data,testing_targets=mnist.load()# Create a new neural networkdigit_classifier=pk.NeuralNetwork([784,100,10])# Train itdigit_classifier.train(training_data=training_data,targets=training_targets,batch_size=50,epochs=1200,optimizer=pk.Adam(learning_rate=0.012,decay_rate=0.95),testing_data=testing_data,testing_targets=testing_targets,testing_freq=30,decay_freq=15)# Save itpk.save(digit_classifier,'digit_classifier_network.pkl')# Show performanceaccuracy=digit_classifier.accuracy(training_data,training_targets)print('Train Accuracy:',accuracy)accuracy=digit_classifier.accuracy(testing_data,testing_targets)print('Test Accuracy:',accuracy)# Plot performance graphdigit_classifier.plot_performance()# Show confusion matrixdigit_classifier.confusion_matrix(training_data,training_targets)Trying the modelimportrandomimportnumpyasnpimportmatplotlib.pyplotaspltimportpykitmlaspkfrompykitml.datasetsimportmnist# Load datasettraining_data,training_targets,testing_data,testing_targets=mnist.load()# Load the trained networkdigit_classifier=pk.load('digit_classifier_network.pkl')# Pick a random example from testing dataindex=random.randint(0,9999)# Show the test data and the labelplt.imshow(training_data[index].reshape(28,28))plt.show()print('Label: ',training_targets[index])# Show predictiondigit_classifier.feed(training_data[index])model_output=digit_classifier.get_output_onehot()print('Predicted: ',model_output)Performance GraphConfusion Matrix
Package: pykitopen
pykitopenA python wrapper for theKITOpendatabase!Free software: MIT licenseDocumentation:https://pykitopen.readthedocs.io.Getting StartedInstallationThe package is best installed using pip, as it will also install all the necessary dependencies$pipinstallpykitopenUsageTo query the KITOpen search function, simply create aKitOpenwrapper object with the desired
configuration and call thesearchfunction with the relevant parameters. The returnedSearchResultsobject can be iterated for all the publications.frompykitopenimportKitOpen,Publicationfrompykitopen.configimportDEFAULTkitopen=KitOpen(DEFAULT)results=kitopen.search({'author':'MUSTERMANN, MAX','start':'2012','stop':'2016','view':Publication.VIEWS.FULL})forpublicationinresults:print(publication.data)FeaturesThe library is still under development, which is why this first version only provides some basic functionality.
At the moment only a publication search is supported:Searching by author and by yearCustomizable publication “views”, which define the fields to be included.PlannedSupport more search parameters such as publication type, open access availability etc.Add support for the metrics generation feature of KITOpen.Add additional batching strategiesAdd export of the result to different formats such as CSV, JSON…LicenseDistributed under the MIT License. SeeLICENSEfor more informationContactJonas Teufel -jonseb1998@gmail.comCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (17.06.2020)Initial release0.1.1 (23.01.2021)changed datetime format in HISTORY.rstfixed errorAdded VERSION file
Package: pykitsu
A fast and asynchronous API wrapper for kitsu.ioThis is an asynchronous and high-speed Python API wrapper for accessing Kitsu.io API.FeaturesAsynchronous: Utilizes asyncio to perform non-blocking operations, making it efficient for handling multiple requests concurrently.Speed Optimized: Built to provide fast response times by leveraging efficient HTTP requests.rate limit handled: comes with a built in rate limit manager.easy to learn: by simplifying the syntax the library can be really easy to grasp.Notesusage: you can check the examples fromhereInstallationstable versionpipinstallpykitsurolling releases versionpipinstallgit+https://github.com/ore0Os/pykitsu.gitrequirementspipinstall-rhttps://raw.githubusercontent.com/ore0Os/pykitsu/main/requirements.txtVersion 0.3.0 Patch NotesAddedget_trending: Fetches trending items.search_by_id: Enables specific item search by ID.get_id: Retrieves the ID for a particular item as a helper tool.RemovedNo functionalities were removed in this update.ModifiedSearch: Enhanced the search feature.Random: Optimized the random feature to provide better results.
Package: pykitty
PyKittyThis Python SDK allows you to interact withKittySplitto manage expenses in a group. You can fetch a list of users, select a user and add expenses.InstallationTo install the package, use the following command:pipinstallpykittyUsageOpen a kitty onhttps://kittysplit.de/and set a usernameOnce opened, copy the full Kittysplit URL, e.g.https://kittysplit.de/test_kitty/ADLKFJLAKD.../Create your first expense with the following code (replace<kitty_URL>and<your_username>):frompykittyimportKittySplitAPIapi=KittySplitAPI("<kitty_URL>")api.select_user("<your_username>")api.add_expense(amount="10.00",description="A warm welcome by pykitty!",)Get UsersTo fetch a list of users, use theget_usersmethod:users=api.get_users()This will return a dictionary with usernames as keys and user IDs as values.Select UserTo select a user, use theselect_usermethod:api.select_user("username")This method will set theselected_viewing_party_idattribute to the ID of the specified user.Add ExpenseTo add an expense, use theadd_expensemethod:api.add_expense(amount="10.00",description="Lunch",)This method will add a new expense with the specified details.With theentry_dateparameter, you can specify the date of the expense:api.add_expense(amount="10.00",description="Lunch",entry_date="2023-03-29",)With theweight_mappingparameter, you can specify how much each user should pay for the expense. The sum of the weights must be1.api.add_expense(amount="10.00",description="Lunch",weight_mapping={"username1":0.6,"username2":0.4},)Get Expensesapi.get_expenses()LicenseThis project is licensed under the MIT License.Next Steps (TODO)Parse Kitty URL to extractkitty_idImplementget_expensesmethod to retrieve all expenses.Add support for deleting expenses.Enhance test coverage.Add support for updating expenses.Document CLI usage.Support for Kittysplit in other languages.
Package: pyKiwrious
pyKiwrious==========OverviewDocumentationTests and DemonstrationsInstallationDevelopmentFuture PlansAcknowledgementOverviewThis repository contains the first implementation of the pyKiwrious library.The library supports Python development when working withKiwrioussensors.Using this library, you can connect with, read from, and manipulate Kiwrious streams through theKiwriousServiceobject.Project Homepage:https://github.com/uoa-compsci399-s2-2022/team36DocumentationsFor detailed documentation of the functionalities, see thePyPI_PublicationDetails.txtfile.For more details about the project and Kiwrious sensors, see the [report.pdf](coming soon) file.Tests and DemonstrationsDemonstrations on the usage of the library can be found in theDemodirectory.Tests can be found in thetestingdirectory (humidity, conductivity and heartbeat sensors), and theTest Groupdirectory (light, temperature and air quality sensors).Note: Demonstration programs and some tests are not publish to PyPi, but are all avaliable in githubInstallationStart with usingpip install pyKiwriouson your Python console.The library requirespyserialandnumpy. This will be automatically imported by the setup.py file on installation.Alternatively, you can download the library from the PyPi page.DevelopmentThe program is developed entirely with Python language (python>=3.0). It uses external libraries to connect with USB device (pyserial==3.5), and perform FFT to filter data (numpy==1.23.4). Aside from these essential tools, others were used to support developemnt.During early stages of development, we used the following tools:Bus hound software (version=6.0) to understand data structure.Visualisation tools to understand heart rate sensor (matplotlib==3.6.1).For testing we used:Testing tools (unittest==0.0) to develop test stubs.Virtual serial port to simulate comports.To demonstrate the flexibility of our core library, demo programs used:PygamePyzeroPushOver platformONVIF-based CCTV cameraRasberry Pi hardware and platformProject management was done through the following platforms:Slack for client communicationsGithub pull requests for version controlWechat group communicationFollowing Ganzt chart produced by ProjectLibreFuture PlansThe current version can cause some delay when being used by end programs, this may cause major satisfaction when providing service for games and other programs that requires fast response. Future versions should develop techniques such as, thread pools, concurrency locks, and more to optimise resource allocation across the threads, hence lower latency.The program only provides basic functionality in reading data stream, future versions might benefit from implementing other functions such as, getting data average, controlling sample rate, getting data peak values and more that helps end program manipulate data.AcknowledgementThe project is developed by Team 36 from the UOA COMPSCI 399 course (2022, S2).Thank you for the support from our client and partnerKiwrious- Augmented Human Lab.
Package: pykk
pykkPython library for calculating Kramers-Kronig transform written in Rust.RequirementsRust 1.50.0 (for build)Python 3.6 ~ 3.9 (For use)InstallIf you use Windows, you can install with pip command.$pipinstallpykkIf not, you can install Rust and build from the source.buildIf you want to build from source, run the following command in your shell$cargobuild--releaseLinuxRenametarget/release/libpykk.sototarget/release/pykk.so, and put .so file in the same directory with the python source.WindowsRenametarget/release/pykk.dlltotarget/release/pykk.pyd, and put .pyd file in the same directory with the python source.How to useThis library has two functions for calculating Kramers-Kronig transform, the transformation from real to imaginary part and vice versa.importpykkenergy=[1,2,3,4]# the values MUST have the same intervalsreal=[1,2,3,4]imag=pykk.real2imag(energy,real)# real -> imaginary partreal_kk=pykk.imag2real(energy,imag)# imaginary -> real partPerformanceCompare the performance with the code implemented by Python. The length of the data is ~ 1000 data points.Python 3.8pykk37 s0.4 msLicenseThis application contains artifacts distributed under the license of the Apache License, Version 2.0.
Package: pykka
🌀 PykkaPykka makes it easier to build concurrent applications.Pykka is a Python implementation of theactor model.
The actor model introduces some simple rules to control
the sharing of state and cooperation between execution units,
which makes it easier to build concurrent applications.For a quickstart guide and a complete API reference,
see thedocumentation.InstallationPykka requires Python 3.8 or newer.Pykka is available fromPyPI:python3 -m pip install pykkaProject resourcesDocumentationSource codeReleasesIssue trackerContributorsUsersLicensePykka is copyright 2010-2024 Stein Magnus Jodal and contributors.
Pykka is licensed under theApache License, Version 2.0.