Saravanan666/pypi-org huggingface dataset:
Package: pynavt
Pynavt_____                         _   
 |  __ \                       | |  
 | |__) |   _ _ __   __ ___   _| |_ 
 |  ___/ | | | '_ \ / _` \ \ / / __|
 | |   | |_| | | | | (_| |\ V /| |_ 
 |_|    \__, |_| |_|\__,_| \_/  \__|
         __/ |                      
        |___/Create project with Clean Architecture folder structurePynavt is a cli tool to create clean architecture app for you including Fastapi, bcrypt and jwt.Creates Clean Architecture project for youFeaturesClean Architecture Folder Structure (https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html)Fastapi (https://fastapi.tiangolo.com/)Jwt (https://pyjwt.readthedocs.io/)Bcrypt (https://pypi.org/project/bcrypt/)Auto generate moduleAuto generate db service clientMysqlExample tasks apiInstallationPynavt requiresPython3.6 to run.Install the dependencies.pipinstallpynavtHow to useIn your terminal type to see all avaible commands:pynavt--helpTo create a new Fastapi with clean architecture project(This includes a crud example with the name of Tasks):pynavt --new yourProjectNameTo create a new module with crud:pynavt --module yourModuleNameTo run the project:uvicorn app:app --relaodDatabase serviceTo create a new db service client with Mysql:Mysql - to learn more visit (https://www.w3schools.com/python/python_mysql_getstarted.asp)pynavt --client mysqlThis will generate a database connection in infraestructure/databases/client.pyto use import the service in your repository.Folder Structure:|-- controller
|        |      
|        |-tasks --> This is and example folder(Create your own folder)
|            |       
|            |-tasks_controller.py --> This is and example controller file(Create your own controllers)
|            
|-- domain
|      |
|      |-useCase
|            |
|            |-tasks --> This is and example folder(Create your own folder)
|                | 
|                |-task_useCase.py --> This is and example useCase file(Create your own useCases)
|
|-- infraestructure
|           |
|           |-databases
|           |      |
|           |      |-client.py
|           |
|           |-entities
|           |      |
|           |      |-tasks --> This is and example folder(Create your own folder)
|           |          |
|           |          |-tasks_entity.py --> This is and example entity file(Create your own entity)
|           |
|           |-respository
|                  |
|                  |-tasks --> This is and example folder(Create your own folder)
|                      | 
|                      |-tasks_repository.py --> This is and example repository file(Create your own repositories)
|                       
|-- utils
        |
        |-errors
        |    |
        |    |-errros.py
        |
        |-services
                |
                |-jwt
                |   |
                |   |-jwt.py
                |
                |-bcrypt
                    |
                    |-bcrypt.pyLicenseMITPynavt isMIT licensed."# Pynavt"
"# pynavt"
"# pynavt"
Package: pynbaapi
pynbaapiPython Wrapper for NBA APICreated by Todd RobertsInstallationInstall from pip:pip install pynbaapiorpy -m pip install pynbaapiUseSeeexamples.pyin theexamplesfolder for some example uses.There are other methods in thepynba.nba.NBA()object, and thepynba.api.API()object has afrom_urlmethod that can be used to retrieve arbitrary URLs (as long as the response is in nested json format, which many of the NBA API endpoints are not).SupportI do not provide support related to NBA API. There is good documentation on theswar/nba_apirepo, and this package was only created because the nba_api package does not (appear to) return API responses in recursive objects.Copyright NoticeThis package and its author are not affiliated with NBA or any NBA team. This API wrapper interfaces with NBA's API. Use of NBA data is subject to copyright by NBA.
Package: pynb-dag-runner
pynb-dag-runnerpynb-dag-runneris a Python library that can run ML/data pipelines on stateless compute infrastructure (that may be ephemeral or serverless).This means thatpynb-dag-runnerdoes not need a tracking server (or database) to record task outcomes (like logged ML metrics, models, artifacts).
Instead, pipeline outputs are emitted using theOpenTelemetry standard.
Since structured logs can be directed to a file (as one option), this can be used to run pipelines on limited or no cloud infrastructure;
after pipeline execution one only needs to preserve the structured logs.Documentation and architecturehttps://pynb-dag-runner.github.io/pynb-dag-runnerDemoThe below shows a demo ML training pipeline that uses only Github infrastructure (that is: Github actions for compute; Build artifacts for storage; and Github Pages for reporting). This usespynb-dag-runnerand a fork of MLFlow that can be deployed as a static website (see,https://github.com/pynb-dag-runner/mlflow).Codes for pipeline (MIT):https://github.com/pynb-dag-runner/mnist-digits-demo-pipelineRoadmap and project planninghttps://github.com/orgs/pynb-dag-runner/projects/2/views/3Install via PyPILatest releasepip install pynb-dag-runnerhttps://pypi.org/project/pynb-dag-runnerSnapshot of latest commit to main branchpip install pynb-dag-runner-snapshothttps://pypi.org/project/pynb-dag-runner-snapshotAny feedback/ideas welcome!License(c) Matias Dahl 2021-2022, MIT, seeLICENSE.md.
Package: pynb-dag-runner-snapshot
pynb-dag-runnerpynb-dag-runneris a Python library that can run ML/data pipelines on stateless compute infrastructure (that may be ephemeral or serverless).This means thatpynb-dag-runnerdoes not need a tracking server (or database) to record task outcomes (like logged ML metrics, models, artifacts).
Instead, pipeline outputs are emitted using theOpenTelemetry standard.
Since structured logs can be directed to a file (as one option), this can be used to run pipelines on limited or no cloud infrastructure;
after pipeline execution one only needs to preserve the structured logs.Documentation and architecturehttps://pynb-dag-runner.github.io/pynb-dag-runnerDemoThe below shows a demo ML training pipeline that uses only Github infrastructure (that is: Github actions for compute; Build artifacts for storage; and Github Pages for reporting). This usespynb-dag-runnerand a fork of MLFlow that can be deployed as a static website (see,https://github.com/pynb-dag-runner/mlflow).Codes for pipeline (MIT):https://github.com/pynb-dag-runner/mnist-digits-demo-pipelineRoadmap and project planninghttps://github.com/orgs/pynb-dag-runner/projects/2/views/3Install via PyPILatest releasepip install pynb-dag-runnerhttps://pypi.org/project/pynb-dag-runnerSnapshot of latest commit to main branchpip install pynb-dag-runner-snapshothttps://pypi.org/project/pynb-dag-runner-snapshotAny feedback/ideas welcome!License(c) Matias Dahl 2021-2022, MIT, seeLICENSE.md.
Package: pynblock
A payment card industry crypto library - PIN blocks, card/PIN verification values calculation etcUsage:>>> from pynblock.tools import *
>>> check_key_parity(bytes.fromhex('FA9F90D49CB27B7D14A3FA9CCCFF6CB7'))
True
>>> modify_key_parity(bytes.fromhex('32743CD2823EF937A865A18A8A3A1657'))
b'3t<\xd2\x82?\xf99\xa9e\xa3\x8b\x8b:\x17Y'
Package: pynbody
pynbodyPynbodyis an analysis framework for
N-body and hydrodynamic astrophysical simulations supporting PKDGRAV/Gasoline,
Gadget, Gadget4/Arepo, N-Chilada and RAMSES AMR outputs. It supports Python 3
only (versions prior to 1.0 are still available on PyPI for Python 2).
Minor version support adheres roughly toNEP29.Written in Python, the core tools are accompanied by a library of
publication-level analysis routines. For a quick tour of some of
the features, have a look at thisIPython notebook.Getting startedIf python and the standard pip package manager is installed and properly configured, you can simply do:$ pip install pynbodyIf this fails, you may need some more detailedinstallation
instructions. Once
you have the package installed, try the introductorytutorials.
The full documentation can be foundhere.ContributingHelp us makepynbodybetter! As you develop analysis for your science with pynbody, consider making your code available for everyone else to use. You can do this by creating atutorialorcookbookor by adding your code to the relevant sub-module and submitting a pull request (make a fork first -- seehttps://help.github.com/articles/using-pull-requests).Acknowledging the codeWhen using pynbody, please acknowledge it by citing theAstrophysics Source Code Library entry. Optionally you can also cite the Zenodo DOI for the specific version of pynbody that you are using, which may be foundhere.Support and ContactIf you have trouble with Pynbody or you have feature
requests/suggestions you cansubmit an issue,
and/or send us an email on theUsergroup mailing
list.
Package: pynbp
pynbp - Python Numeric Broadcast ProtocolPython Numeric Broadcast ProtocolThis module implements HP Tuners / Track Addict Numeric Broadcast Protocolhttp://racerender.com/TrackAddict/docs/NBP%20Specification%20V1.pdfExample:
$ python examples/example1.pyAttributes:
nbpqueue - queue.Queue() for sending payloads into the class
- Format: NbpPayload(timetamp, packettype, kpilist)
device: Bluetooth Serial device for comms
device_name: Device name sent via metadata packet to host
protocol_version: NBP1 as defined.
max_update_interval: Minimum interval to send packets. If using this with high rate senders, send 'ALL' packets as updates will miss updates.See racerender docs for unit types.

Supports WiFi / Socket connections now (0.0.7)Requirements:pyserialInstall:
pip install pynbp
or
python setup.py install
Package: pync
A simple Python wrapper around theterminal-notifiercommand-line tool (version 2.0.0), which allows you to send User Notifications to the Notification Center on Mac OS X 10.10, or higher.Installationpipinstallpyncorpipinstallgit+https://github.com/SeTeM/pync.gitorgitclonegit://github.com/SeTeM/pync.gitcdpyncpythonsetup.pyinstallUsageFor full information on all the options, see the tool’sREADME.Examples:Using the notify functionimportpyncpync.notify('Hello World')pync.notify('Hello World',title='Python')pync.notify('Hello World',group=os.getpid())pync.notify('Hello World',activate='com.apple.Safari')pync.notify('Hello World',open='http://github.com/')pync.notify('Hello World',execute='say "OMG"')pync.remove_notifications(os.getpid())pync.list_notifications(os.getpid())Using the notifier objectfrompyncimportNotifierNotifier.notify('Hello World')Notifier.notify('Hello World',title='Python')Notifier.notify('Hello World',group=os.getpid())Notifier.notify('Hello World',activate='com.apple.Safari')Notifier.notify('Hello World',open='http://github.com/')Notifier.notify('Hello World',execute='say "OMG"')Notifier.remove(os.getpid())Notifier.list(os.getpid())LicenseAll the works are available under the MIT license.Exceptfor ‘Terminal.icns’, which is a copy of Apple’s Terminal.app icon and as such is copyright of Apple.SeeLICENSEfor details.
Package: pyncaids
pyncaidsNational Competent Authority (NCA) identifiers as a Python moduleimportpyncaidsnca=pyncaids.NCA()authority_list=nca.nca_by_authority_id("GB-FCA")>>>[{'authority_id':'GB-FCA','country':'United Kingdom','authority_name':'Financial Conduct Authority'}]authority_list=nca.nca_by_partial_authority_id("FM")>>>[{'authority_id':'AT-FMA','country':'Austria','authority_name':'Austria Financial Market Authority'},>>>{'authority_id':'IS-FME','country':'Iceland','authority_name':'Financial Supervisory Authority'},>>>{'authority_id':'LI-FMA','country':'Liechtenstein','authority_name':'Financial Market Authority Liechtenstein'}]authority_list=nca.nca_by_country("United Kingdom")>>>[{'authority_id':'GB-FCA','country':'United Kingdom','authority_name':'Financial Conduct Authority'}]authority_list=nca.nca_by_partial_country("it")>>>[{'authority_id':'LT-BL','country':'Lithuania','authority_name':'Bank of Lithuania'},>>>{'authority_id':'GB-FCA','country':'United Kingdom','authority_name':'Financial Conduct Authority'}]authority_list=nca.nca_by_authority_name("Financial Conduct Authority")>>>[{'authority_id':'GB-FCA','country':'United Kingdom','authority_name':'Financial Conduct Authority'}]authority_list=nca.nca_by_partial_authority_name("Supervisory Authority")>>>[{'authority_id':'DK-DFSA','country':'Denmark','authority_name':'Danish Financial Supervisory Authority'},>>>{'authority_id':'EE-FI','country':'Estonia','authority_name':'Estonia Financial Supervisory Authority'},>>>{'authority_id':'FI-FINFSA','country':'Finland','authority_name':'Finnish Financial Supervisory Authority'},>>>{'authority_id':'DE-BAFIN','country':'Germany','authority_name':'Federal Financial Supervisory Authority'},>>>{'authority_id':'IS-FME','country':'Iceland','authority_name':'Financial Supervisory Authority'},>>>{'authority_id':'NO-FSA','country':'Norway','authority_name':'The Financial Supervisory Authority of Norway'}]Source: EBA
Package: pyncat
A simple, stateful code execution server for Python, inspired by ncat.Warningpyncat will execute whatever you throw at it!Be sure to sandbox your execution environment if it will
be exposed to untrusted input.InstallationInstall from PyPI:pip install pyncatUsageStart the pyncat listener:pyncatSend your Python code for execution:echo 'import this' | nc 127.0.0.1 31337The MIT LicenseCopyright 2022 Mark JacobsonPermission 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.
Package: pynccl
pyncclNvidia NCCL2 Python bindings using ctypes and numba.Many codes and ideas of this project come from the projectpyculib.
The main goal of this project is to use Nvidia NCCL with only python code and without any other compiled
language code like C++. It is originally as part of the distributed deep learning project callednecklace, and now it could be used at other places.InstallNCCLPlease follow the Nvidia dochereto install NCCL.pyncclfrom source,python setup.py installor just,pip install pyncclUsageEnvironmentsfor numbaexport LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH(the following may be no need)export NUMBAPRO_CUDALIB=/usr/local/cuda/lib64
export NUMBAPRO_NVVM=/usr/local/cuda/nvvm/lib64/libnvvm.so
export NUMBAPRO_LIBDEVICE=/usr/local/cuda/nvvm/libdevice/for NCCLexport NUMBA_NCCLLIB=/usr/lib/x86_64-linux-gnu/

export NCCL_DEBUG=INFO

export NCCL_SOCKET_IFNAME=<your-ifname-like-ens11>Examplespynccl.NcclWrpThis piece of code is an example of NcclWrp with multiprocessing for dispatching
the ncclUniqueId to all processes. See the complete codeherenk = pynccl.NcclWrp(kn, rank, gpu_i)

    if rank == 0:

        nuid = nk.get_nuid()

        for j in range(kn - 1):
            q.put((nuid, w))

    else:
        nuid, w = q.get()

    nk.set_nuid(nuid)

    nk.init_comm()pynccl.NcclYou also can use the original functions of pynccl.Nccl, see the codehere
Package: pyncer
pyncer使用训练fromdatetimeimportdatetimefrompyncer.textimportTextPyncer,TextPyncerTrainerfrompyncer.text.utilimportload_by_filenamefromtqdmimporttqdmif__name__=='__main__':pyncer=TextPyncer(path='./captcha.m',length=5,charset=['0','1','2','3','4','5','6','7','8','9',],)data=load_by_filename('./debug/')batch_size=128trainer=TextPyncerTrainer(pyncer=pyncer,train_data=data,test_data=data,batch_size=128)avg_loss=0.0avg_limit=100avg_count=0foriinrange(200):forj,lossintqdm(trainer.train()):avg_loss+=lossc=avg_count+jif(c%avg_limit)==0:print(f'count:{c}| loss:{avg_loss/avg_limit}')avg_loss=0.0avg_count+=jaccuracy=trainer.test(10)print(f'epoch:{i}| accuracy:{accuracy*100:.2f}%')if(i%3)==2:pyncer.save()now=datetime.now().strftime('%Y-%m-%d%H:%M:%S')print(f'epoch:{i}| save:{now}')猜验证码importrandomfrompyncer.textimportTextPyncerfrompyncer.text.utilimportload_by_filenameif__name__=='__main__':pyncer=TextPyncer(path='./captcha.m',length=5,charset=['0','1','2','3','4','5','6','7','8','9',],)data=load_by_filename('./debug/')for_inrange(10):i=random.randint(0,len(data))c,p=data[i]r=pyncer.infer(p)print(f'{c}<=>{r}')
Package: pynchrotron
pynchrotronImplements synchrotron emission from cooling electrons. This is the model used inBurgess et al (2019). Please cite if you find this code useful for your research.This code gets rid of the need for GSL which was originally relied on for a quick computation of the of the synchrotron kernel which is an integral over a  Bessel function.This code has been ported from GSL and written directly in python as well as accelerated with numbaAn astromodels function is also supplied for direct use in 3ML.
Package: pynclose
# Pynclose
Python wrapper around the [In-Close algorithm implementation by Simon Andrews](https://sourceforge.net/projects/inclose/), Sheffield Hallam University, UK, Conceptual Structures Research Group.## In-Close sources
Version of 18/07/2017 retrieved from
[the project page](https://sourceforge.net/projects/inclose/),
and slightly changed to remove non-necessary parts (see 468fad66 and 04c00c47).### Features
- [X] make the sources really wrappable and usable as a lib, notability by crushing the main into a function with lots of parameters instead of waiting for them in the standard input.
- [ ] fix the C global variable bug, as found by [run_test_dir/test_reusability_of_search.py](run_test_dir/test_reusability_of_search.py)
- [ ] Unit tests.
- [ ] Better file path management (python side, probably).
- [ ] Packaging is currently a mess ; notabily becauses C package is not properly integrated into the package itself. Compilation may or may not be working when installing from pypi.
Package: pyncm-async
PyNCM Async!安装pip install pyncm-asyncAPI 使用示例 (IPython)In[1]:frompyncm_asyncimportapis# 获取歌曲信息In[2]:awaitapis.track.GetTrackAudio(29732235)Out[2]:{'data':[{'id':29732235,'url':'http://m701.music...# 获取歌曲详情In[3]:awaitapis.track.GetTrackDetail(29732235)Out[3]:{'songs':[{'name':'Supernova','id':2...# 获取歌曲评论In[4]:awaitapis.track.GetTrackComments(29732235)Out[4]:{'isMusician':False,'userId':-1,'topComments':[],'moreHot':True,'hotComments':[{'user':{'locationInfo':None,'liveIn ...多 Session 示例LoginViaEmail(...)# 利用全局 Session 完成该 API Callsession=CreateNewSession()# 建立新的 SessionawaitLoginViaEmail(...)asyncwithCreateNewSession():# 建立新的 Session，并进入该 Session, 在 `with` 内的 API 将由该 Session 完成awaitLoginViaCellPhone(...)# 离开 Session. 此后 API 将继续由全局 Session 管理awaitGetTrackComments(...)使用with时...注：Session 各线程独立，各线程利用with设置的 Session 不互相影响注：Session 离开withclause 时，Session 会被销毁，但不会影响全局 Session注：Session 生命周期细节请参阅https://www.python-httpx.org/async/同时，你也可以在 API Call 中 指定 SessionawaitGetTrackComments(...,session=session)详见Session 说明API 说明大部分 API 函数已经详细注释，可读性较高。推荐参阅API 源码获得支持FAQ为什么GetTrackAudio几乎拿不到音频 URL？你需要进行登陆。若身边没有合适的账号，也可选择匿名登陆 (IPython内示例)：In[1]:frompyncm_async.apis.loginimportLoginViaAnonymousAccountIn[2]:awaitLoginViaAnonymousAccount()Out[2]:{'tick':1662870122.1159196,'content':{'code':200,'userId':8023914528,'createTime':1662868134354,'profile':{'nickname':'Ano...感谢Android逆向——网易云音乐排行榜api(上)Binaryify/NeteaseCloudMusicApi衍生项目PyNCMd
Package: pyncomb
The pyncomb (PYthoN COMBinatorics) library is a collection offunctions to work with basic combinatorial objects (e.g. permutations,
subsets, tuples), and provides algorithms for ranking, unranking, and
iterating over all objects in a specified class.1.0.2: Updated import statements to be Python 3 compatible.
1.0.1: Attempting to fix mysterious bug regarding imports.
1.0.0: Initial release.
Package: pyncos-module
NCOS-ModuleNCOS子设备基类。通过继承该类快速构建NCOS下的子设备模块，并与NCOS进行数据交换类ModuleBase| RUN运行模块， 并开始管理主事件循环defrun(self)返回None| BIND_NCOS_BROKER绑定NCOS的主题网关defbind_ncos_broker(self,host:str,port:int)参数参数类型说明hoststr网关主机地址portint网关端口返回None| ADD_TOPIC添加模块订阅defadd_topic(self,topic:str,accessor)参数参数类型说明topicstr订阅的主题accessorfunc接收到订阅消息时的处理函数返回None| SET_WILL设置模块遗愿，当模块与NCOS网关断开时向NCOS发送指定内容defset_will(self,content:str)参数参数类型说明contentstr向NCOS发送的指定内容返回None| HANDLE_CONNECT当与MCU或其他设备建立好连接后执行本函数@abstractmethoddefhandle_connect(self)参数None返回None| HANDLE_DISCONNECT当与MCU或其他设备断开连接后执行本函数@abstractmethoddefhandle_disconnect(self)参数None返回None| HANDLE_STARTUP当模块run函数被调用时执行本函数@abstractmethoddefhandle_startup(self)参数None返回None| HANDLE_EXIT当模块run函数退出时执行本函数@abstractmethoddefhandle_exit(self)参数None返回None| HANDLE_POST_INSTALL主动向NCOS安装本模块时执行本函数@abstractmethoddefhandle_post_install(self)参数None返回None| HANDLE_BROKER_CONNECTED与NCOS主题网关建立连接时执行本函数@abstractmethoddefhandle_broker_connected(self,client,userdata,flags,rc)参数参数类型说明clientobjectthe client instance for this callbackuserdataobject用户自定义数据flagsdictresponse flags sent by the brokerrcintthe connection result返回None| HANDLE_NCOS_READY当收到NCOS广播已准备好时执行本函数@abstractmethoddefhandle_NCOS_ready(self,data)参数参数类型说明datadict参见NCOS_Ready返回None| HANDLE_DATA_PULL当NCOS发起拉取数据指令执行本函数@abstractmethoddefhandle_data_pull(self,data)参数参数类型说明datadict返回None| HANDLE_CONFIG当NCOS向模块下发配置指令时执行本函数@abstractmethoddefhandle_config(self,data)参数参数类型说明datadict返回None| HANDLE_ACTION当NCOS向模块下发操作指令时执行本函数@abstractmethoddefhandle_action(self,data)参数参数类型说明datadict返回None| HANDLE_INSTALLED当收到NCOS对模块安装请求的响应时执行本函数@abstractmethoddefhandle_installed(self,result:bool,reason:str)参数参数类型说明resultbool安装结果的标识, true = 安装成功reasonstr安装失败的原因返回None| HANDLE_UNINSTALLED当模块主动卸载时执行本函数@abstractmethoddefhandle_uninstalled(self,reason:str)参数参数类型说明reasonstr卸载原因返回None| HANDLE_ERROR当模块发生异常时的处理函数@abstractmethoddefhandle_error(self,error)参数参数类型说明errorstr异常信息返回None数据结构NCOS_Ready{"slots":[]}