Saravanan666/pypi-org huggingface dataset:
Package: pycoyote
pycoyote - A Python library for building Web user interfacesDefine your component# You define a class derived from Component# You need to implement method render# You can access self.children which represent all the children of your component# You can access self.props which contains all the attributes passed to your component# You can import HTML tags from Component, for example "from pycoyote import DIV"frompycoyoteimportComponent,DIV,SPANclassMainPage(Component):defrender(self):returnDIV(SPAN({"class":"bold","style":f"background-color:{self.props['color']};"},"Hello world!"),*self.children)Using your component# You can pass attributes to your component# You can pass children to your componentMainPage({"color":"green"},SPAN("Example ends here.")# you can pass as much child as you need)ExamplesPlease checkExamplesfor details.
Package: py-cozi
py-coziTable of ContentsIntroductionInstallationUsageMethodsExceptionsIntroductionUnofficial python wrapper for the Cozi API. This library requiresPython >=3.5.Installationpipinstallpy-coziUsageimport asyncio
from cozi import Cozi

username = ''
password = ''

cozi = Cozi(username, password)
asyncio.run(cozi.login())

get_lists = asyncio.run(cozi.get_lists())
print(get_lists)Methodsdef login()Logs into Cozi.def get_lists()Gets all of your lists.def add_list(list_title, list_type)Adds a new list.ParameterTypeDescriptionlist_titlestringTitle of your listlist_typestring'todo' or 'shopping'def remove_list(list_id)Removes a list.ParameterTypeDescriptionlist_idstringCozi list iddef reorder_list(list_id, list_title, items_list, list_type)Reorders a list.ParameterTypeDescriptionlist_idstringCozi list idlist_titlestringTitle or name of your listitems_listlistList of JSON Cozi itemslist_typestring'todo' or 'shopping'def add_item(list_id, item_text, item_pos)Adds an item to a list.ParameterTypeDescriptionlist_idstringCozi list iditem_textstringTitle or name of your itemitem_posintArray index position of the itemdef edit_item(list_id, item_id, item_text)Edits an item in a list.ParameterTypeDescriptionlist_idstringCozi list iditem_idstringCozi item iditem_textstringTitle or name of your itemdef mark_item(list_id, item_id, item_status)Checks or completes and item in a list.ParameterTypeDescriptionlist_idstringCozi list iditem_idstringCozi item iditem_statusstring'complete' or 'incomplete'def remove_items(list_id, items_list)Removes item(s) from a list.ParameterTypeDescriptionlist_idstringCozi list iditems_listlistList of Cozi item IDsdef get_calendar(year, month)Gets calendar appointments for a given year and month.ParameterTypeDescriptionyearintYearmonthintMonthdef add_appointment(year, month, day, start, end, date_span, attendees, location, notes, subject)Adds a new calendar appointment.ParameterTypeDescriptionyearintYearmonthintMonthdayintDaystartstringStart time in 24 hour format08:00endstringEnd time in 24 hour format21:00date_spanintDays the appointment spansattendeeslistList of Cozi person IDslocationstringLocation of the appointmentnotesstringNotes for the appointmentsubjectstringThe title or name of the appointmentdef edit_appointment(appt_id, year, month, day, start, end, date_span, attendees, location, notes, subject)Edits a calendar appointment.ParameterTypeDescriptionappt_idstringCozi appointment IDyearintYearmonthintMonthdayintDaystartstringStart time in 24 hour format08:00endstringEnd time in 24 hour format21:00date_spanintDays the appointment spansattendeeslistList of Cozi person IDslocationstringLocation of the appointmentnotesstringNotes for the appointmentsubjectstringThe title or name of the appointmentdef remove_appointment(year, month, appt_id)Removes a calendar appointment.ParameterTypeDescriptionyearintYearmonthintMonthappt_idstringCozi appointment IDExceptionsCoziExceptionInvalidLoginExceptionThrown when login fails.RequestExceptionThrown when the connection is reset.
Package: pycp
What it looks like:Seepycp--helpfor detailed usage.Development happens ongithubInstallationpycpworks both for any version greater than Python 3.4, and is installable withpip.ForArchlinux,aPKGBUILDis also available onAURNotesImplementation heavily inspired by the wonderful libraryprogressbarby Nilton Volpato.I also maintain a similary tool written in rust calledrusync. It has a different set of features (so you may want to stick with pycpy), but is much faster.If you are looking for a ncurses-based solution, vcp maybe the right choice
for youhttp://www.freebsdsoftware.org/sysutils/vcp.htmlIf you are looking for a more general solution to display progress bars when
performing command-line operations, see clpbar:http://clpbar.sourceforge.net/
Package: pycp2110
# Silicon Labs cp2110 Python libraryThis library provides a Python interface to the [Silicon Labs CP2110](https://www.silabs.com/documents/public/data-sheets/CP2110.pdf) HID USB to UART bridge.At this point in time this library presents only the parts of the [available API](https://www.silabs.com/documents/public/application-notes/AN434-CP2110-4-Interface-Specification.pdf) that are required for basic UART access.#  cp2110 InstallationInstall via pip: `python -m pip install cp2110`.The cp2110 library depends on the [pyhidapi](https://github.com/apmorton/pyhidapi) Python module, which itself requires the `hidapi` shared library.  On Linux distributions, this is generally in the repositories (for instance, under Debian you can install either libhidapi-hidraw0 or libhidapi-libusb0 depending on which backend you want to use).# Example usage```import cp2110import time# This will raise an exception if a device is not found.  Called with no# parameters, this looks for the default (VID, PID) of the CP2110, which are# (0x10c4, 0xEA80).try:d = cp2110.CP2110Device()except:pass# In some cases the device maker will override the VID and/or PID at the# factory, so you'll need to pass parameterstry:cp2110.CP2110Device(vid=0xDEAD, pid=0xBEEF)except:pass# You can also find a device by path.cp2110.CP2110Device(path='/dev/hidraw0')# If you want to avoid the exception or want to detect the presence of a# device without creating an object as a side-effect, use the# `cp2110.enumerate` function.  This has the same default values as the# `CP2110Device` constructor.usb_info = cp2110.enumerate()if usb_info:print(usb_info.as_dict())usb_info = cp2110.enumerate(vid=0xDEAD, pid=0xBEEF)if usb_info:print(usb_info.as_dict())# Fetch the current uart configuration.  This is the UART connection from the# CP2110 to the microcontroller (or whatever) it's wired up to.c = d.get_uart_config()# The UART settings are dictated by the device that embeds the CP2110.  It# may be configured correctly by default, or you may need to set manually.d.set_uart_config(UARTConfig(baud=38400,parity=cp2110.PARITY.NONE,flow_control=cp2110.FLOW_CONTROL.DISABLED,data_bits=cp2110.DATA_BITS.EIGHT,stop_bits=STOP_BITS.SHORT))# If you ever need to disable the UART, you can.d.disable_uart()# And you can clear any pending data in the on-chip I/O buffers.d.purge_fifos()  # The default is cp2110.FIFO.BOTHd.purge_fifos(cp2110.FIFO.TX)d.purge_fifos(cp2110.FIFO.RX)# Check if the UART is enabled.print(d.is_uart_enabled())# The UART in your device may need to be explicitly enabled, particularly if# you've already explicitly disabled it as in this example.d.enable_uart()# The write method accepts byte strings or arrays of ints.d.write(b'hello world')d.write([0x01, 0xff])# The default read size will return 63 bytes (at most), which is the maximum# supported by this chip.  Reads do not block.rv = d.read()```
Package: pycparser-fake-libc
pycparser-fake-libcSimple build wrapper to create a pip-installable package which includes all of the headers frompycparser/utils/fake_libc_include.See:https://github.com/eliben/pycparserTo build, runmaketo copy the headers from the submoduledpycparserinto the library dir and build the wheel fileUsage:importosimportpycparser_fake_libcimportpycparserfake_libc_arg="-I"+pycparser_fake_libc.directoryast=pycparser.parse_file("c_file_to_parse.c",use_cpp=True,cpp_args=fake_libc_arg)
Package: pycpd
Pure Numpy Implementation of the Coherent Point Drift Algorithm.MIT License.IntroductionThis is a pure numpy implementation of the coherent point driftCPDalgorithm by Myronenko and Song. It provides three registration methods for point clouds: 1) Scale and rigid registration; 2) Affine registration; and 3) Gaussian regularized non-rigid registration.The CPD algorithm is a registration method for aligning two point clouds. In this method, the moving point cloud is modelled as a Gaussian Mixture Model (GMM) and the fixed point cloud are treated as observations from the GMM. The optimal transformation parameters maximze the Maximum A Posteriori (MAP) estimation that the observed point cloud is drawn from the GMM.The registration methods work for 2D and 3D point clouds. For more information, please refer to myblog.Pip InstallpipinstallpycpdInstallation From SourceClone the repository to a location, referred to as therootfolder. For example:gitclonehttps://github.com/siavashk/pycpd.git$HOME/pycpdInstall the package:pipinstall.For running sample registration examples underexamples, you will needmatplotlibto visualize the registration. This can be downloaded by running:pipinstallmatplotlibUsageEach registration method is contained within a single class inside thepycpdsubfolder. To try out the registration, you can simply run:pythonexamples/fish_{Transform}_{Dimension}.pywhereTransformis eitherrigid,affineordeformableandDimensionis either2Dor3D. Note that examples are meant to be run from therootfolder.
Package: pycpdflib
pycpdflibpycpdflib is a Python interface to the cpdf pdf tools. More information,
including commercial licenses can be found athttps://www.coherentpdf.com/The non-commercial home of pycpdf ishttp://community.coherentpdf.com/FunctionalityQuality Split and Merge, keeping bookmarks. Extract pages. Split on Bookmarks.Encrypt and Decrypt (including AES 128 and AES 256 encryption)Scale, rotate, crop and flip pages. Scale pages to fitCopy, Remove and Add bookmarksStamp logos, watermarks, page numbers and multiline text. Transparency.Supports Unicode UTF8 text input and outputPut multiple pages on a single pageList, copy, or remove annotationsRead and set document information and metadataAdd and remove file attachments to document or page.Thicken hairlines, blacken text, make draft documentsReconstruct malformed filesDetect missing fonts, low resolution imagesObtaining the DLLsThe DLLspycpdflibandcpdflibare required. They are free for
non-commercial use. Commercial use requires a license. The DLLs can be obtained
here:https://github.com/coherentgraphics/cpdflib-binaryDocumentationFull manual (required reading):https://coherentpdf.com/pycpdflibmanual.pdfFollow the instructions at the end of Chapter 1 to load the DLLs and write your
first pycpdf program.Quick reference API docs:https://python-libcpdf.readthedocs.io/en/latest/Contactmailto:contact@coherentgraphics.co.ukBug report:https://github.com/coherentgraphics/python-libcpdf
Package: pycpf
CPF validator and generator.How to useFirst, install pycpf:$ pip install pycpfThen you can use it for generating a new CPF:>>> from pycpf import CPF
>>> CPF()
CPF('53587674019')or to validate an existing CPF:>>> CPF('53587674019').valid()
TrueCPF objects can also be compared to strings:>>> CPF('53587674019') == '53587674019'
Trueor even converted to strings:>>> str(CPF('53587674019'))
'535.876.740-19'LicenseThis software is licensed through BSD 2-clause license. Please read “LICENSE”
for more information.
Package: pycppad
PyCppAD — Python bindings for CppAD Automatic Differentiation libraryPyCppADis an open source framework which provides bindings for the CppAD Automatic Differentiation(CppAD) C++ library in Python.PyCppADalso includes support for the CppADCodeGen (CppADCodeGen), C++ library, which exploits CppAD functionality to perform code generation.Installing PyCppADInstallation viaAs simple as that:condainstallpycppad-cconda-forgeInstallation via PyPIAs simple as that:pipinstallpycppadInstallation by sourceDependenciesPyCppAD dependes on the following dependencies:Boost.PythonEigen3EigenPyCppADCppADCodeGen(Optional)Compiling PyCppADOnce the dependencies have been installed, follow the following commands to compile PyCppAD:cd ${path_to_your_development_source}/
git clone --recursive https://github.com/Simple-Robotics/pycppad.git
cd pycppad
mkdir _build-RELEASE
cd _build-RELEASE
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=${path_to_your_installation}
make installSet up thepath_to_your_installationandpath_to_your_development_sourcebased on your personal development environment.Alternatively, in order to compile withCppADCodeGensupport, add-DBUILD_WITH_CPPAD_CODEGEN_BINDINGS=ONto the cmake command, and follow the build sequence as before:cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=${path_to_your_installation} -DBUILD_WITH_CPPAD_CODEGEN_BINDINGS=ONAcknowledgmentsThe development ofPyCppADis supported by theWillow team@INRIA.
Package: pycps
#python-client-api - Clusterpoint Server Python API library#---##About##Clusterpoint Server is a scalable high-speed NoSQL database technologywith Google-like search.python-client-api is a Python API for Clusterpoint Server.##Useful links##* [Clusterpoint Ltd. web page](http://www.clusterpoint.com/)* [Clusterpoint documentation site](http://docs.clusterpoint.com/)* [Clusterpoint API reference includingPython](http://docs.clusterpoint.com/wiki/Reference)* [Clusterpoint Python API libraryoverview](http://docs.clusterpoint.com/wiki/Python_API_overview)* [python-client-api githubrepository](https://github.com/clusterpoint/python-client-api)##Installation##Use Python distutils to install Clusterpoint Python client from source:`sudo python2 setup.py install`##Support##Please feel free to contact the maintainer of this package onsuport@clusterpoint.com
Package: pycpsdata
PyCPSOverviewPython package for loadingCurrent Population Survey (CPS)microdata into apandas DataFrameusing the Census Bureau Data API, includingbasic monthly CPSandCPS ASECmicrodata.Note: This product uses the Census Bureau Data API but is not endorsed or certified by the Census Bureau.For an R version of this package, check outcpsR.Setup InstructionsInstall the package:pipinstallpycpsdata# Alas, pycps was takenand store yourCensus API keyin an environment variable namedCENSUS_API_KEY.Example Usagefrompycpsimportget_asecasec=get_asec(2021,["a_age","marsupwt"])asec#         a_age  marsupwt# 0          56    687.71# 1          57    687.71# 2          78    646.86# 3          65   1516.95# 4          66   1516.95# ...       ...       ...# 163538     69    514.11# 163539     70    516.25# 163540     66    516.25# 163541     55    386.37# 163542     52    386.37## [163543 rows x 2 columns]asec.marsupwt.sum()# 326195439.67
Package: pycpt
Python Competitive Programming ToolsThis is an example project demonstrating how to publish a python module to PyPI.InstallationRun the following to install:$pipinstallpycptUsagefromcpinimportsi,mi# Get single int input valuet=si()for_inrange(t):# Get multiple int input valuesa,b,c=mi()print("yay!")DevelopmentTo install pycpt, along with the tools you need to develop and run tests, run the following in your virtualenv:$pipinstall-e.[dev]
Package: py-cptcore
py-cptcorePublic python SDK for the CEMS CPTCore web-APIThis repository is created byCEMS BVand is a public python wrapper around the CEMSCPTCore web-API.InstallationTo install a package in this repository run:$ pip install py-cptcoreENV VARSTo usepy-cptcoreadd the follow ENV vars to your environment. Or provide them when asked.* NUCLEI_TOKEN
    - Your NUCLEI user tokenYou can obtain yourNUCLEI_TOKENonNUCLEI.
Go topersonal-access-tokensand create a new user token.ContributionEnvironmentWe recommend developing in Python3.9 with a clean virtual environment (usingvirtualenvorconda), installing the requirements from the requirements.txt file:Example usingvirtualenvandpipto install the dependencies in a new environment .env on Linux:python-mvenv.envsource.env/bin/activate
python-mpipinstall--upgradepipsetuptools
pipinstall-rrequirements.txt
pipinstall-e.DocumentationBuild the docs:python-mpipinstall--upgradepipsetuptools
pipinstall-rrequirements.txt
pipinstall.

sphinx-build-bhtmldocspublicFormatWe format our code with black and isort.black--config"pyproject.toml"src/pycptcoretestsisort--settings-path"pyproject.toml"src/pycptcoretestsLintTo maintain code quality we use the GitHub super-linter.To run the linters locally, run therun_super_linters.shbash script from the root directory.UnitTestTest the software with the use of coverage:python-mpipinstall--upgradepipsetuptools
pipinstall-rrequirements.txt
pipinstall.
coveragerun-mpytestRequirementsRequirements are autogenerated by thepip-compilecommand with python 3.9Install pip-tools with:pipinstallpip-toolsGenerate requirements.txt file with:pip-compile--extra=test--extra=lint--extra=docs--output-file=requirements.txtpyproject.tomlUpdate the requirements within the defined ranges with:pip-compile--upgrade--extra=test--extra=lint--extra=docs--output-file=requirements.txtpyproject.toml
Package: py-cpuutilization
py-cpuutilization=================A module for getting the CPU utilization on any OS with Python 2 & 3Py-cpuutilization should work without any extra programs or libraries,beyond what your OS provides. The goal is for this to work on every OSthat Python supports. Works on Linux, OS X, Windows, BSD, Solaris,Cygwin, and Haiku.Run as a script---------------::from cpuutilization import cpuutilizationprint(cpuutilization.get_utilization())
Package: pycpx
PyCPX is a python wrapper for the CPlex Optimization Suite thatfocuses on speed, ease of use, and seamless integration with numpy.CPlex is a powerful solver for linear and quadratic programs overreal, linear, and boolean variables.  PyCPX allows one to naturallyexpress such programs using numpy and natural python constructs.PyCPX requires IBM's `ILog Concert Technology`_ Suite, which isavailable for free under IBM's Academic Initiative program or as partof the CPlex Optimization Suite.To install, typepython setup.py installThis compiles the included C++ source generated by cython.  To compilethe cython source file into C++, typepython setup.py install --cythonTo compile the documentation, typemake htmlin the doc/ directory.  The documentation will then be indoc/.build/html.Additional documentation can be found athttp://www.stat.washington.edu/~hoytak/code/pycpx/.
Package: pycqBot
pycqBotgo-cqhttp python 框架，可以用于快速塔建 bot项目文档不更新的话 请刷新浏览器缓存项目文档 (移动至 Github Pages): https://fengliufeseliud.github.io/pycqBot/go-cqhttp支持 PyPy可以使用 PyPy3 进行性能提升pypy3-mpipinstallpycqBot# 改用 PyPy 运行pypy3./main.py演示创建指令frompycqBotimportcqHttpApi,cqBot,cqLogfrompycqBot.dataimport*cqLog()deftest(command_data,message:Message):message.reply("你好!")bot=cqHttpApi().create_bot()# 创建指令 "#test"bot.command(test,"test")bot.start()cqCodefrompycqBot.cqCodeimportimage,get_cq_codecq_code=image("https://i.pixiv.cat/img-master/img/2020/03/25/00/00/08/80334602_p0_master1200.jpg")# 字典 与 cqCode 互转print(cq_code,"\n\n",get_cq_code(cq_code))事件处理frompycqBotimportcqHttpApi,cqBot,cqLogfrompycqBot.dataimport*cqLog()classmyCqBot(cqBot):# 防撤回defnotice_group_recall(self,event:Notice_Event):message=self.cqapi.get_msg(event.data["message_id"])["data"]self.cqapi.send_group_msg(message["group_id"],"有一条消息无了 群友还没看清楚呢！%s：%s"%(message["sender"]["nickname"],message["message"]))bot=myCqBot(cqHttpApi()).start()
Package: py-cra
Python Create React AppPyCRAis a tool used to create a react frontend app for a backend server usuallyFlaskorDjangobackend.the tool works a that, it creates a couple of dirs and files in a certain directory.
init a npm package.json in the directory. and with the babel it compile the react app intostatic/js/main.py.
and then it loaded into thetemplates/*/index.htmlthen this html file is rendered by theflaskordjangobackend server.Install$pipinstallpy_craRequirements- npm
- nodejs
- git
- python>=3.6Usage$python-mPyCRAFlask Usage$python-mPyCRA--mode=flask--app_dir=appHere your have two optionseither you execute this command from outside your app directory like./../app/$ python -m PyCRA --mode=flask --app_dir=appor fron inside your app directory like../../run.py$ python -m PyCRA --mode=flask --app_dir=.replace the app with your application directory.Django Usage$python-mPyCRA--mode=django--app_name=nameHere you must be in yourBASE_DIRor the directory where themanage.pylives. this is important so your application did not get messed up.Make sure that you have create the django app first before you execute the command.replace the name with your django app nameHelp$ python -m PyCRA --help
usage: __main__.py [-h] [--mode MODE] [--app_name APP_NAME] [--app_dir APP_DIR]

optional arguments:
  -h, --help           show this help message and exit
  --mode MODE          django or flask mode
  --app_name APP_NAME  app name if django mode
  --app_dir APP_DIR    app dir if flask modePost CreationAfter that you need to run this command$npmrundevto compile your js source files and create themain.jsthat
get loaded into theindex.htmland load the app into your browser.
make sure that the$ npm run devrun and remain watching any changes into your files. it recompile every this once any change is happened to the js source files.
finally to build the app you shoud use the.$npmrunbuildto finally compile your app.DjangoIn case of django backend add a view into thefrontend/views.py.
In here we use thefrontendname as the django app.fromdjango.shortcutsimportrenderdefindex(request):returnrender(request=request,template_name='frontend/index.html')FlaskIn case of flask backend add a route to theapp.pyfromflaskimportFlask,render_templateapp=Flask(__name__)@app.route('/')defindex():returnrender_template('index.html')if__name__=='__main__':app.run(debug=True)Infoplease, make sure that this is only works a frontend app only.
so you cannot use something likejinja templatinginstead you should create arest apias your backend server that can be created with eiherflask_restfulin case ofFlaskordjango-restframeworkin case ofDjango.
Package: pycracks
PycracksPyPIQualityFormatLegal💢🔍 breaking change detection in Python - Compatible with Semantic Version and Semantic ReleaseUsageUse the --help flag for detailed options:pycracks--helpPycracks can be used in different ways, the most straightforward one is:pycracks--paths"tests"--target-version"<to-be-release-version>"--test-command"pytest tests"Thetest-commandcould be any command and does not need to be Python specificCombine with scriptsIt is also possible to simplify thetest-commandby always using something likepipenv scriptsornpm scriptsSo in theproject.json/Pipfile, one could define the test command and use pycracks withnpm run testorpipenv run testinstead:pycracks--paths"tests"--target-version"<to-be-release-version>"--test-command"pipenv run test"pycracks--paths"tests"--target-version"<to-be-release-version>"--test-command"npm run test"Semantic ReleaseIf using the Python-Semantic-Release module, installable with:pipxinstallpython-semantic-releaseOne can integrate it with PyCracks by using:pycracks-t"$(semantic-release-vversion--print)"InstallationWith PipxRecommended instalation for CICD is throughpipxwith a pinned version:pipinstallpipx==1.2.0
pipxrunpycracks==0.18.0--paths"tests"--target-version"<to-be-release-version>"--test-command"pytest tests"That command will create a virtual environment just for pycracks and run the test command from there.With pipInstalation can be done with pip as usual:pipinstallpycracksPipenv and poetry equivalents can be used as well.F.A.Q.License