Saravanan666/pypi-org huggingface dataset:
Package: changelog-parser
changelog-parserYet another python changelog parser.Loads data from aCHANGELOG.mdfileusing code like:importchangelogwithopen("CHANGELOG.md",'rb')asfp:changes=changelog.load(fp)orimportchangelogwithopen("CHANGELOG.md",'r')asfp:changes=changelog.loads(fp.read())Returns it in the following schema (some types are Python objects and not valid JSON schema):{"$schema":"https://json-schema.org/draft-07/schema#","title":"Loaded Changelog","type":"array","items":{"type":"object","properties":{"version":{"oneOf":[{"const":"Unreleased"},{"type":"semver.Version","description":"Python object from https://pypi.org/project/semver/"}]},"date":{"oneOf":[{"const":null},{"type":"datetime.date","description":"Python object from https://docs.python.org/3/library/datetime.html#date-objects; parsed using \"fromisoformat\""}]},"yanked":{"type":"boolean"},"added":{"$ref":"#/$defs/change_list"},"changed":{"$ref":"#/$defs/change_list"},"depreciated":{"$ref":"#/$defs/change_list"},"removed":{"$ref":"#/$defs/change_list"},"fixed":{"$ref":"#/$defs/change_list"},"security":{"$ref":"#/$defs/change_list"},"compare_url":{"type":"string","pattern":"^https?:\\/\\/.+"}},"required":["version","date","yanked"],"additionalProperties":false},"$defs":{"change_list":{"type":"array","items":{"type":"string"}}}}Dumps data, structured like that above, to aCHANGELOG.mdfileusing code likeimportchangelogimportsemverfromdatetimeimportdatewithopen("CHANGELOG.md",'rb')asfp:changes=changelog.load(fp)changes.insert(0,{"version":semver.Version(major=0,minor=0,patch=6),"date":date.today(),"added":["`dump` and `dumps` examples"]})withopen("CHANGELOG.md",'wb')asfp:changelog.dump(changes,fp)orimportchangelog...changelog_contents=changelog.dumps(changes)withopen("CHANGELOG.md",'w')asfp:fp.write(changelog_contents)
Package: changelogs-cli
Changelogs GeneratorHey! This Package is achangelogs-clipackage that creates automatic changelogs that supportsConventional Commits.Since we use Bitbucket, we needed something like this and I wanted to share it publicly in case you need it too.Emoji SupportIf comments comply with conventional commit rules, they are supported with emoji.["feat":"✅","fix":"🚀","build":"💚","chore":"🚀","docs":"📝","style":"🎨","refactor":"👷","perf":"⚡️","test":"🧪","merge":"🎉","revert":"⏪️"]Installingpip install changelogs-cliExampleFirst, let's get into the current your repository.Example;cd /home/repository/Example usage is as follows.
changelogsexample/commits/(this should be commit link to show reference  on changelogs md.)Demoi will use this repo for example ;https://github.com/qoomon/git-conventional-commitsThe sample check logs are as follows :Check it!
Package: changelog-suggest
CHANGELOG SuggestWriting CHANGELOGs can be a grueling task but git logs can help you create asuggestedCHANGELOG. The intention of this tool is to remove some of the grunt work involved checking diffs to write CHANGELOGs.InstallationYou can installchangelog-suggestthrough pip:pip install changelog-suggestUsageCommand line usage:usage: changelog [-h] -s START [-e END] -v VERSION [-i ISSUE]
                 [-u ISSUE_URL_PREFIX]

Publish suggested CHANGELOG from git commits

optional arguments:
  -h, --help            show this help message and exit
  -s START, --start START
                        Enter commit/tag/branch you want CHANGELOG from
  -e END, --end END     Enter commit/tag/branch you want CHANGELOG to. Default
                        value is set to `master` branch
  -v VERSION, --version VERSION
                        Enter new version number for the CHANGELOG
  -i ISSUE, --issue ISSUE
                        Enter issue ID pattern. Should be a regex pattern to
                        look for
  -u ISSUE_URL_PREFIX, --issue-url-prefix ISSUE_URL_PREFIX
                        Enter issue URL prefix. If your issues are on github
                        then it could be https://github.com/<username
                        >/<repository-name>/issues/<issue-number>LicenseMIT (See LICENSE)NoteAgain, this command line tool creates a suggested CHANGELOG. So use it at your discretion. It is advisable to add more information to your CHANGELOG once you have created it through this command line utility. Better advice can be foundhere.
Package: changeo
Change-O - Repertoire clonal assignment toolkitChange-O is a collection of tools for processing the output of V(D)J alignment
tools, assigning clonal clusters to immunoglobulin (Ig) sequences, and
reconstructing germline sequences.Dramatic improvements in high-throughput sequencing technologies now enable
large-scale characterization of Ig repertoires, defined as the collection of
trans-membrane antigen-receptor proteins located on the surface of B cells and
T cells. Change-O is a suite of utilities to facilitate advanced analysis of
Ig and TCR sequences following germline segment assignment. Change-O
handles output from IMGT/HighV-QUEST and IgBLAST, and provides a wide variety of
clustering methods for assigning clonal groups to Ig sequences. Record sorting,
grouping, and various database manipulation operations are also included.
Package: changepoint
changepointPython bindings for important functionality of the rust librarychangepoint, a library for doing change point detection for steams of data.InstallationInstall via pip with$python3-mpipinstall"changepoint"Note: If there is no binary distribution for your OS, architecture, and Python version, you will need the Rust compiler to build the package and install a Python tool called Maturin:curl--proto'=https'--tlsv1.2-sSfhttps://sh.rustup.rs|sh
python3-mpipinstallmaturinSeerustup.rsfor instructions on installing Rust.Quick DocsBy convention in these docs and examples,importchangepointascptModelsBocpdThe Bayesian change point detector,Bocpd, takes a prior distribution, aka one ofcpt.BetaBernoulli
cpt.NormalGamma
cpt.NormalInvChiSquared
cpt.NormalInvGamma
cpt.NormalInvWishart
cpt.PoissonGammaThen, aBocpdmay be created:cpd=cpt.Bocpd(prior=cpt.NormalGamma(),lam=12,)where the prior is aNormalGammaand the characteristic run length is12.Each step of the data stream,data, can be processed byimportrandomimportnumpyasnpdata=[random.gauss()for_inrange(30)]\+[random.gauss(1,2)for_inrange(30)]n=len(data)change_point_history=np.zeros((n,n))fori,xinenumerate(data):change_point_history[i,:i+1]=cpd.step(x)print(cpt.map_changepoints(change_point_history))ArgpCpdArgpCpdhas an implicit prior as it is a Gaussian Process of the formX_{i+1} = c X_{i-l-1, ..., i-1} + εwherecis the scale,X_{i-l-1, ..., i-1}is the previous vales in the sequence (lis the max-lag parameter), andεis a white noise parameter.
It behaves similarity to theBocpdclass; for example,argp=cpt.ArgpCpd(logistic_hazard_h=-2,scale=3,noise_level=0.01)n=len(data)change_point_history=np.zeros((n+1,n+1))xs=[]ys=[]fori,xinenumerate(data):cps=argp.step(x)change_point_history[i,:len(cps)]=cpsprint(cpt.map_changepoints(change_point_history))ExampleAn example IPython notebook can be foundhere.
Package: changes
Copyright (c) 2013 Michael JosephPermission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Description: UNKNOWN
Platform: UNKNOWN
Package: changetip
A set of tools for interacting with the ChangeTip API -https://www.changetip.com/api/Install$pipinstallchangetipExamplesfromchangetip.bots.baseimportBaseBotclassYourBot(BaseBot):defcheck_for_new_tips(self)# Code to check for new tipspassTo see it in action, checkout the [ChangeTip Slack bot](https://github.com/changecoin/changetip-slack), which uses this library.TestsCircleCI test status:To run tests:$pythonsetup.pytestLocal DevelopmentSource code - [ChangeTip Python on Github](https://github.com/changecoin/changetip-python)If you would like to post API messages locally instead of production (https://api.changetip.com/v1), you can pass the environemnt variableCHANGECOIN_API. For example:$CHANGECOIN_API=http://localhost/v1/pythonyourcodeLicenseMIT
Package: changetools
ChangeTools (Python)Change evaluation functions and decorators.Direct example:>>> from pathlib import Path
>>> from functools import partial
>>> from changetools import ChangeEvaluator
>>> hello_path = Path('hello.txt')
>>> _ = hello_path.write_text('hello')
>>> change_evaluator = ChangeEvaluator(partial(hello_path.read_text))
>>> change_evaluator.changed
True
>>> change_evaluator.changed
False
>>> _ = hello_path.write_text('hi')
>>> change_evaluator.changed
True
>>> change_evaluator.changed
FalseWhile example:>>> hello_path = Path('hello.txt')
>>> change_evaluator.changed
KeyboardInterrupt
>>> _ = hello_path.write_text('hello')
>>> change_evaluator = ChangeEvaluator(partial(hello_path.read_text))
>>> while change_evaluator.changed:
...   _ = hello_path.write_text('hi')
...For example usingcycle:>>> hello_path = Path('hello.txt')
>>> change_evaluator = ChangeEvaluator(partial(hello_path.read_text))
>>> _ = hello_path.write_text('hello')
>>> for i in change_evaluator.cycle(10):
...   print(i)
...   _ = hello_path.write_text('hi')
...
0
1
Package: changewords
Simply python tool to change or replace the text string in the files.
This tool pretty nice for programmers if somehow they want to replace/change their codes for many files,
eg:function,class,variable, etc for recursive files or not.InstallationInstall from PyPI:$ pip install changewordsUsageusage: changewords.py [-h] [-p PATH] [-ft FILE_TYPE] [-fs FROM_STRING]
                      [-ts TO_STRING]

Python tool to change or replace the strings in files.

optional arguments:
  -h, --help            show this help message and exit
  -p PATH, --path PATH  the starting path or parent path name
                        by default is current path/folder.
  -ft FILE_TYPE, --file_type FILE_TYPE
                        file type you are looking for, eg: '.py', '.txt'
                        by default is '.py' (python files)
  -fs FROM_STRING, --from_string FROM_STRING
                        the string to change/replace
  -ts TO_STRING, --to_string TO_STRING
                        the string replacementExample$ changewords -p=changewords_test -ft=.py -fs=helloworld -ts=mantabjiwa

# or

$ changewords --path=changewords_test --file_type=.py --from_string=helloworld --to_string=mantabjiwaRunning testsTo run the test use:$ python tests.py
Package: changgelog
【唱歌log】让你的程序学会唱歌！你看到英语标题肯定以为这是changelog，其实不是，这是chànggēlog！它的作用是让你的程序可以一边打印log一边唱歌！使用方法首先你要import changgelog，并把它绑定到sys.stderr上，像这样——importsysimportchanggelogchanggelog.bind(sys.stderr)接下来程序打印log的时候就会唱歌啦！logging.warning('有内鬼！终止交易！')但是记得要在没有人的时候再用！安装方法你只需要一台有音箱的电脑，并且安装windows和Python3.6以上版本。接着pip install changgelog，然后你的程序就会唱歌啦！就这样，我要回去看萝莉图片了，大家88！
Package: chanim
ChanimThis is an extension toManimlibrary (initially created by3Blue1Brown),
for making videos regarding chemistry.A Hindi version of this README is availablehere.Installation (pip)pip install chanimInstallation (Source)Install the external dependencies for manim as describedhereaccording to your OS.Clone the contents of this repository.Open a terminal in the cloned directory and runpip install -e ., or if you prefer to usepoetryinstead,poetry install. This'll installmanimfor you as well if you don't already have it installed. (you'll still need to setup the external dependencies though)That's about it. You can now dofrom chanim import <*|object_name>like any regular Python package.UsageHere's a little example of it working.fromchanimimport*classChanimScene(Scene):defconstruct(self):## ChemWithName creates a chemical diagram with a name labelchem=ChemWithName("*6((=O)-N(-CH_3)-*5(-N=-N(-CH_3)-=)--(=O)-N(-H_3C)-)","Caffeine")self.play(chem.creation_anim())self.wait()Type this into a python (.py) file. I'll assume you named itchem.pyIn your command prompt/terminal write this (assuming you're in your project directory):manim-p-qmchem.pyChanimSceneThis'll render your Scene andpreview it in your default player (inmediumquality).https://user-images.githubusercontent.com/65204531/124297601-dcafcf80-db78-11eb-936b-cdc913c91f25.mp4Congrats! You've written and played your first animation with chanim (or "chanimation" should I say)Explore the code and docs (coming soon!) for more on how to use chanim.AbilitiesCurrently chanim only supports drawing compounds and reactions along with a few chemfig commands (such as coordinate bonds and complexes etc.) but more is to come! If you have a suggestion, file an issue with a proper tag.A Quick NoteThere may be some faulty code and a lot of this may not be well made/documented. Feel free to file an issue if something doesn't work properly.
Package: chanjet-openapi-python-sdk
chanjet-open-sdk欢迎使用 Chanjet Open SDK for Python环境要求Chanjet Open SDK for Python 需要配合Python 3.8或其以上版本。使用 Chanjet Open SDK for Python 之前 ，您需要先前往畅捷通-开发者中心完成开发者接入的一些准备工作，包括创建应用、获取应用的appKey和appSecret。安装依赖推荐通过pip下载pip install chanjet-openapi-python-sdk快速使用importloggingfromchanjet_openapi_python_sdk.chanjet_clientimportChanjetClientfromchanjet_openapi_python_sdk.request.tplus.query_inventory_requestimportQueryInventoryRequestfromchanjet_openapi_python_sdk.response.tplus.query_inventory_responseimportQueryInventoryResponsefromchanjet_openapi_python_sdk.content.tplus.query_inventory_contentimportQueryInventoryContentfromchanjet_openapi_python_sdk.utils.chanjet_loggerimportChanjetLoggerdefquery_inventory_demo():req=QueryInventoryRequest()req.request_uri='/tplus/api/v2/inventory/Query'# 推荐使用字典传值方式，直接传实体实例会有一定的性能损耗# req.content = {'param': {'Code': '123'}}req.content=QueryInventoryContent('124','123',False,True)# 支持将返回值解析成实体类属性，如果不传入实体类名，则按照json的格式进行转换成字典、列表、字符串等result=client.execute(req,QueryInventoryResponse)returnresultif__name__=='__main__':# 设置自定义日志配置ChanjetLogger(logging.INFO)client=ChanjetClient('https://openapi.chanjet.com')# 请填入您从开放平台申请下来的appKeyclient.app_key='A******8'# 请填入您从开放平台申请下来的appSecretclient.app_secret='9****************8'# 请填入您的开放平台openTokenclient.open_token="""e****************************************************************************k"""# 查询存货res=query_inventory_demo()
Package: chanmqttsproxy
This is a tiny enhanced version of channels-mqtt-proxy。
It Add MQTTSsupport for original channels-mqtt-proxy . mqtts is mandatory for some IoT platform like AWS.Installation:pip install chanmqttsproxyIn Django settings.py , specify the credentials or certs , simillar as following example.# Local mqtt settings
MQTT_TLS = True
MQTT_CA = 'app/certs/ca.crt'
MQTT_CERT = 'app/certs/client1.crt'
MQTT_KEY = 'app/certs/client1.key'
MQTT_HOST = 'x.x.x.x'
#MQTT_USER = 'mqtt-test'
#MQTT_PASSWORD = 'mqtt-test'
MQTT_VERSION = 311  # defaults to 50other general usage just the sameview originalchannels-mqtt-proxyfor more information.
Package: channel-access.client
This library contains the low-level bindings to thelibcalibrary and an
high-level thread-safe interface for ease of use.For the server implementation seechannel_access.server.InstallationBefore installing the library, the environment variablesEPICS_BASEandEPICS_HOST_ARCHmust be set.Then the library can be installed with pip:pip install channel_access.clientExamplesExamples are located in theexamplesdirectory.Thesimple.pyexample monitors a single process value and outputs the
contents of the data dictionary:python examples/simple.py test-pvGet the sourceThe source code is available in aGithub repository:git clone https://github.com/delta-accelerator/channel_access.clientDocumentationThe documentation for the last version is availableonline.The documentation can also be generated from the source code withsphinx.
The package must be installed prior to building the documentation:cd /path/to/repository
pip install .
python setup.py build_sphinxThen openbuild/sphinx/html/index.html.TestsTests are run withpytest:cd /path/to/repository
pytest -vTo run the tests for all supported version usetox:cd /path/to/repository
tox
Package: channel-access.common
This library contains the low-level bindings to the common channel access
constants and common utility functions.This is a support library used bychannel_access.clientandchannel_access.server.InstallationBefore installing the library, the environment variablesEPICS_BASEandEPICS_HOST_ARCHmust be set.Then the library can be installed with pip:pip install channel_access.commonDocumentationThe documentation is availableonlineor it can be
generated from the source code withsphinx:cd /path/to/repository
pip install -e .
python setup.py build_sphinxThen openbuild/sphinx/html/index.html.Get the sourceThe source code is available in aGithub repository:git clone https://github.com/delta-accelerator/channel_access.commonTestsTests are run withpytest:cd /path/to/repository
pytest -vTo run the tests for all supported version usetox:cd /path/to/repository
tox
Package: channel-access.server
This library contains a low-level binding to the cas library in EPICS base
and a thread-safe high level interface to create channel access servers.For the client implementation seechannel_access.client.InstallationBefore installing the library, the environment variablesEPICS_BASEandEPICS_HOST_ARCHmust be set.Then the library can be installed with pip:pip install channel_access.serverIfnumpycan be imported at install time, numpy support is automatically
activated. This can be explicitly controlled with the environment variableCA_WITH_NUMPY:CA_WITH_NUMPY=0 pip install channel_access.server
CA_WITH_NUMPY=1 pip install channel_access.serverIf the package is compiled with numpy support, numpy arrays are used
by default. If numpy arrays should not be used, the parameteruse_numpycan be set toFalse.ExampleThis example shows a simple server with a PV counting up:importtimeimportchannel_access.commonascaimportchannel_access.serverascaswithcas.Server()asserver:pv=server.createPV('CAS:Test',ca.Type.LONG)whileTrue:pv.value+=1time.sleep(1.0)DocumentationThe documentation is availableonlineor it can be
generated from the source code withsphinx:cd /path/to/repository
pip install -e .[doc]
python setup.py build_sphinxThen openbuild/sphinx/html/index.html.Get the sourceThe source code is available in aGithub repository:git clone https://github.com/delta-accelerator/channel_access.serverTestsTests are run withpytest:cd /path/to/repository
pip install -e .[dev]
pytest -vTo run the tests for all supported version usetox:cd /path/to/repository
tox
Package: channelbindjs
ChannelBindJS=============Activates elements for inline editing and live updating from a django-channelsbackend. This script looks for expected class names and data attributes andadds events and attributes to connect them.The aim of this script is to be small and easy to use rather than beinghigh-performance of highly featured. Compatibility is for modern browsers.Any html element containing a representation of a django model can be activatedby adding classes to it and its enclosed field values.On the container:- class="live"- data-model="appname.modelname"- data-id="1" // primay keyOn each field:- class="field" // to enable live udpates- class="editable" // to enable inline editing- data-field="fieldname"This object depends on the channels.WebSocketBinding and should be initialisedwith the binding url of the demultiplexer set up in channels routing.Include the script:```html…<script src="/static/channels/js/websocketbridge.js"></script><script src="/static/channelbindjs/activate.js"</script><script>Activation.init('/binding/');</script></body>```And to make a model receive live updates and have inline editing:```html<div class="live" data-model="appname.modelname" data-id="1" data-stream="demultiplexer-stream"><header><div class="field editable" data-field="title">Rendered content of title field</div></header><div class="field editable" data-field="description">Rendered description</div></div>```Links-----[Channels data binding documentation](https://channels.readthedocs.io/en/stable/binding.html)
Package: channel-box
channel-boxchannel-boxit is a package for Starlette & FastAPI framework that allows you send messages to named websocket channels from any part of your code.Example of use:group chatsnotifications from backendalertshttps://github.com/Sobolev5/channel-boxInstallTo install run:pip install channel-boxFull working example [1]example/app.pyhttps://channel-box.andrey-sobolev.ru/
https://github.com/Sobolev5/channel-box/tree/master/exampleFull working example [2]http://89.108.77.63:1025/
https://github.com/Sobolev5/LordaeronChatNGINX websocket setuphttp://nginx.org/en/docs/http/websocket.htmlCheck uvicorn installationpipinstalluvicorn[standard]Setup channelfromstarlette.endpointsimportWebSocketEndpointfromchannel_boximportChannel,ChannelBoxclassWsChatEndpoint(WebSocketEndpoint):asyncdefon_connect(self,websocket):group_name=websocket.query_params.get("group_name")# group name */ws?group_name=MyChatifgroup_name:channel=Channel(websocket,expires=60*60,encoding="json")# define user channelchannel=awaitChannelBox.channel_add(group_name,channel)# add user channel to named groupawaitwebsocket.accept()asyncdefon_receive(self,websocket,data):data=json.loads(data)message=data["message"]username=data["username"]ifmessage.strip():payload={"username":username,"message":message,}group_name=websocket.query_params.get("group_name")ifgroup_name:awaitChannelBox.group_send(group_name,payload)# send to all users channelsSend messagesSend message to any channel from any part of your code:fromchannel_boximportChannelBoxawaitChannelBox.channel_send(channel_name="MyChat",payload={"username":"Message from any part of your code","message":"hello world"},history=True)Get & flush channels:fromchannel_boximportChannelBoxawaitChannelBox.channels()awaitChannelBox.channels_flush()Get & flush history:fromchannel_boximportChannelBoxawaitChannelBox.history()awaitChannelBox.history_flush()Teststox