Saravanan666/pypi-org huggingface dataset:
Package: python-mwuppet
mwuppet is a Mediawiki Userscripts deploy tool. Use it to easily deploy your userscript bundles (JS/CSS/HTML) onto the wiki. Because copy pasting code into an edit box and hitting ‘Save Page’ sucks.Installation:(pip install | easy_install) python-mwuppetHow to Use:mwuppet mediawiki_scriptnamemediawiki_scriptname: MediaWiki userscript that you want to deploy onto the wiki.File Format:The mediawiki_scriptname should be in the following format:Page:User:Wiki_username:pathExample: page:User:Yuvipanda/wizard/wizard.jsNow according to the above example, the userscript wizard.js will be deployed tohttp://en.wikipedia.org/wiki/User:Yuvipanda/wizard/wizard.jsNote:Old user of mwuppet, make sure that you delete ~/.mwuppet and try the script.
Package: python-myeventhub
python-myeventhub- это API клиент для MyEventHub.ruТребованияPython 2.7, 3.4, 3.5. На других версиях Python не тестировалось, но, возможно, работать будет.УстановкаУстановить пакет через pip:pipinstallpython-myeventhubLicenseApache License Version 2.0, см. файлLICENSE
Package: python-mylog
mylogA simple logging library for Python.Example/Getting startedFirst, install it withpip install python-mylog.Need more help?importmylogmylog.root.info("Hello, world!")# Output: <nothing># Why? Because the threshold is set to WARNING.# Try this:mylog.root.warning("Hello, world!")# Output: [root WARNING 2023-12-23 13:39:16.127495+00:00 line: 00001] Hello, world!# Ormylog.root.threshold=mylog.Level.DEBUGmylog.root.info("Hello, world!")# Output: [root INFO 2023-12-23 13:39:34.231029+00:00 line: 00001] Hello, world!API referenceFor the API reference see the docstrings.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseGNU GPLv3.0+Please note, that by contributing to mylog, you accept the DCO.More info
Package: python-mysql2postgresql
python-mysql2postgresqlStatus : AlphaInstallation -- Pure Pythonpip install python-mysql2postgresqlUsage Python filefrom mysql2postgresql import mysql2postgresql

a = mysql2postgresql()

#connect mysql server
a.connect_mysql(host='localhost',
            port='3306',
            user='root',
            passwd='',
            db='database_name')

#connect postgresql server
a.connect_postgresql(host='localhost',             
                    port=5432,
                    user='postgres',                                
                    password='postgres',                     
                    database='database_name')  


# manual table to transfer data  -> default all table in database
a.tables = ['table1', 'table2', ...]

# manual without table to transfer data  -> default empty
a.without = ['table3', 'table4', ...]

# manual limit to query data -> default 10000 
# not limit -> a.limit = 0 
a.limit = 10000


# program run
a.run()Usage command lineyou can create demo.py file from example bypython -m mysql2postgresql export_exampleyou can run convert mysql to postgresql (all table in database) bypython -m mysql2postgresql convert --mysql_host=localhost --mysql_port=3306 --mysql_user=root --mysql_password= --mysql_database=db_name --postgresql_host=localhost --postgresql_port=5432 --postgresql_user=postgres --postgresql_password=postgres --postgresql_database=database_name
Package: python-mytorch
🔥 MyTorch 🔥🐣 A Library extending PyTorch for Personal Needs backed by C++/CUDA APIs🚧 WIP Forever 🚧Installation 👨‍💻I have not included any dependencies in thesetup.pynor arequirements.txtas I leave the hassle of setting up GPU support for torch on your own. It should work ontorch>=1.4andCUDA>=10.0but I frankly have no clue. I usetorch==1.7.1andCUDAVersion of11.2To install it, just dopipinstallgit+https://github.com/Syzygianinfern0/MyTorch.gitIts also available on PyPi, but I wouldn't be very keen on maintaining it.pipinstallpython-mytorch==0.1Documentation 📑mytorch.opsmytorch.ops.im2colandmytorch.ops.col2imRearrange image blocks into columns.The representation is used to perform GEMM-based convolution.Output is 5D (or 6D in case of minibatch) tensor.Minibatch implementation is inefficient, and could be done in a single CUDA kernel.
Package: python-nacos
python-nacos声明参考nacos-sdk-python项目改造https://github.com/nacos-group/nacos-sdk-pythonUsagefromnacosimportNacosUsageSERVER_ADDRESSES="127.0.0.1:8848"NAMESPACE="44b27ac4-60c1-43e7-8ac3-ed34108ca1aa"params={"servers":SERVER_ADDRESSES,"namespace":NAMESPACE,"service_name":"test.service",# "ip": "127.0.0.1","port":8080,"cluster_name":"testCluster","weight":1.0,"metadata":{},"enable":True,"healthy":True,"ephemeral":True,}usage=NacosUsage(debug=False,daemon=False,**params)# 获取配置conf=usage.get_config(data_id="test")print("config:{}".format(conf))# 注册实例usage.register_instance()
Package: python-namecheap
Remotely manage Namecheap servers withpython-namecheap.RequirementsPython 2.7, 3.2, 3.3, 3.4, or 3.5beautifulsoup4 >= 4.5.1lxml >= 3.6.4requests >=2.12.1InstallationInstall using pip:pip installpython-namecheapAlternatively, you can install download or clone this repo and callpip install-e..Bugs and suggestionsIf you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.https://github.com/cubope/python-namecheap/issuesLicenseYou can use this under Apache 2.0. SeeLICENSEfile for details.AuthorDeveloped and maintained byCubo.Original author & Development lead:Irving Kcam.Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.Please see AUTHORS.rst for a list of contributors.
Package: python-namesilo
Python Namesilo ModuleThis code is written in Python, and the following versions are supported:3.6,3.7,3.8,3.9,3.10.If you want to contribute to this
project feel free to contact me at any time. If you're using this module and
you like it, considerbuying me a beer.:beer:Installationpipinstallpython-namesiloUsagefromnamesilo.coreimportNameSiloclient=NameSilo(token="your-token",sandbox=False)domain_available=client.check_domain("domain-to-register.com")ifdomain_available:print("Domain is available!")client.register_domain("domain-to-register",private=1)# use whois privacyFunctionality StatusFunctionalityDescriptionImplementedregisterDomainRegister a new domain nameYesregisterDomainDropRegister a new domain name using drop-catchingNorenewDomainRenew a domain nameYestransferDomainTransfer a domain name into your NameSilo accountNocheckTransferStatusCheck the status of a domain transferNocheckRegisterAvailabilityDetermine if up to 200 domains can be registered at this timeYescheckTransferAvailabilityDetermine if up to 200 domains can be transferred into your account at this timeNolistDomainsA list of all active domains within your accountYesgetDomainInfoGet essential information on a domain within your accountYescontactListView all contact profiles in your accountYescontactAddAdd a contact profile to your accountYescontactUpdateUpdate a contact profile in accountYescontactDeleteDelete a contact profile in accountYescontactDomainAssociateAssociate contact profiles with a domainNodnsListRecordsView all DNS records associated with your domainNodnsAddRecordAdd a new DNS resource recordNodnsUpdateRecordUpdate an existing DNS resource recordNodnsDeleteRecordDelete an existing DNS resource recordNochangeNameServersChange the NameServers for up to 200 domainsYesportfolioListList the active portfolios within your accountNoportfolioAddAdd a portfolio to your accountNoportfolioDeleteDelete a portfolio from your accountNoportfolioDomainAssociateAdd up to 200 domains to a portfolioNolistRegisteredNameServersList the Registered NameServers associated with one of your domainsNoaddRegisteredNameServerAdd a Registered NameServer for one of your domainsNomodifyRegisteredNameServerModify a Registered NameServerNodeleteRegisteredNameServerDelete a Registered NameServerNoaddPrivacyAdd WHOIS Privacy to a domainYesremovePrivacyRemove WHOIS Privacy from a domainYesaddAutoRenewalSet your domain to be auto-renewedNoremoveAutoRenewalRemove the auto-renewal setting from your domainNoretrieveAuthCodeHave the EPP authorization code for the domain emailed to the administrative contactNodomainForwardForward your domainNodomainForwardSubDomainForward a sub-domainNodomainForwardSubDomainDeleteDelete a sub-domain forwardNodomainLockLock your domainYesdomainUnlockUnlock your domainYeslistEmailForwardsList all email forwards for your domainNoconfigureEmailForwardAdd or modify an email forward for your domainNodeleteEmailForwardDelete an email forward for your domainNoemailVerificationVerify a Registrant email addressNo
Package: python-nasa
Python NASAUnofficial Python Wrapper for NASA API. Full API Documentationhttps://api.nasa.gov/.Installpipinstallpython-nasaUsageBasic UsagefromnasaimportClient# api_key = "Your API Key" Generate here https://api.nasa.gov/client=Client(api_key)apod=client.apod()Get ImagefromnasaimportClient# api_key = "Your API Key" Generate here https://api.nasa.gov/client=Client(api_key)apod_image=client.apod(get_image=True)
Package: python-nasa-api
Python Nasa APISimple wrapper for NASA Api written in python which was previously written by abh80 inJavascriptas NPM which is deprecated now so i aka Science Spot recreated it inPythonusing requests modules!Quick DocsYou need NASA's Official API to use this module!Load Client Class# Import Client ClassfromnasaapiimportClient# Load your apinasa=Client(api)# Replace your api with the original one!Apodprint(nasa.apod())# Will return a dictprint(nasa.apod_image())# Will retun apod image urlEarthprint(nasa.earth(lat,lon,date))# Lat Lon parameters should be latitude and longitude# Date parameter should be in the form of YYYY-MM-DD# Will return a dictprint(nasa.earth_image(lat,lon,date))# Will return image urlInsight Weather Dataprint(nasa.insight())# Will return a dictData of mars roversThere are two methods to get this data1. Using MarsRovers ClassfromnasaapiimportMarsRoversrovers=MarsRovers(api_key,sols,camera)# api_key would be your NASA Api key. Sols would be the Mars Days. Camera is the name of camera to viewprint(rovers.curiosity())# Get data of Curiosity Roverprint(rovers.opportunity())# Get data of Oportunity Roverprint(rovers.spirit())# Get data of Spirit Rover2. Using Client Classrovers=nasa.mars_rovers(sols,camera)# Sols would be the Mars Days. Camera is the name of camera to viewprint(rovers.curiosity())# Get data of Curiosity Roverprint(rovers.opportunity())# Get data of Oportunity Roverprint(rovers.spirit())# Get data of Spirit RoverTechportGet data of nasa's techportprint(nasa.techport(id))# ID will be the id of the techport project!# Will return dict unless its a better idTwo Line Element Sets of NasaGet data of nasa's tleprint(nasa.tle.search(query))# Will return data of a searchprint(nasa.tle.get(query))# Will get of 1 data onlyNIVL aka Nasa Image and Video LibraryGet images, Search Images, and other image and video library of NASAprint(nasa.nivl.search(query))# Query will be the query you will searchprint(nasa.nivl.asset(id))# Get Asset by IDprint(nasa.nivl.metadata(id))# Get Metadata by IDprint(nasa.nivl.captions(id))# Get Captions by IDSupportDiscord Support ServerGitHub Repo
Package: pythonnative
PythonNativePythonNative is a cross-platform Python tool kit for Android and iOS. It allows you to create native UI elements such as buttons and labels in a Pythonic way, regardless of whether you're running on iOS or Android.InstallationYou can install PythonNative from PyPI:pipinstallpythonnativePlease note that PythonNative requires Python 3.6 or higher.UsageHere's a simple example of how to create a button and a label:importpythonnativeaspn# Create a buttonbutton=pn.Button("Click Me")print(button.get_title())# Outputs: Click Me# Create a labellabel=pn.Label("Hello, World!")print(label.get_text())# Outputs: Hello, World!LicensePythonNative is licensed under the MIT License. SeeLICENSEfor more information.
Package: python-nbaclient
python-nbaclientA Python Wrapper of NBA Stats RESTful APIsInstallationpip install python_nbaclientExamplefrompython_nbaclientimportteamsteams.FranchiseLeaders(1610612738){'parameters':{'LeagueID':None,'TeamID':1610612738},'resource':'playerawards','resultSets':[{'headers':['TEAM_ID','PTS','PTS_PERSON_ID','PTS_PLAYER','AST','AST_PERSON_ID','AST_PLAYER','REB','REB_PERSON_ID','REB_PLAYER','BLK','BLK_PERSON_ID','BLK_PLAYER','STL','STL_PERSON_ID','STL_PLAYER'],'name':'FranchiseLeaders','rowSet':[[1610612738,26395,76970,'John Havlicek',6945,600003,'Bob Cousy',21620,78049,'Bill Russell',1703,305,'Robert Parish',1583,1718,'Paul Pierce']]}]}
Package: python-ndev-blizzardapi
Python - NDEV Blizzard APIThis package is designed to make it easy to use theBlizzard APIin Python. It handles authentication, the details of making requests, and receives the responses. It also provides a simple interface for accessing each of the API's features.DocumentationRead the DocsAuthor@natanrmaiaInstalationpipinstallpython-ndev-blizzardapiBlizzard APIs SupportedAPIItemsObsBattle.NetOAuth APIAll Regions supportedWorld Of Warcraft (Retail)Game Data API, Profile Data APIAll WoW Retail API Supported (Patch 10.1.5)World Of Warcraft (Classic)Game Data API, Profile Data APIAll WoW Retail API Supported (Patch 10.1.5)Diablo 4NothingPrioritized once an official API emergesHearthstoneNothingPlanned for the near futureOverwatch LeagueNothingPlanned for the near futureStarCraft 2NothingPlanned for the near futureDiablo 3NothingNot planned for additionReport or RequestBug ReportFeature requestReport a security vulnerabilityOther questionsEmail - contato@natanael.dev.brReferenceBattle.Net Developer Portal
Package: python-ndn
python-ndnA Named Data Networking client library with AsyncIO support in Python 3.It supports Python >=3.10 and PyPy3.10 >=7.3.12.Please see ourdocumentationif you have any issues.Changelog0.4-1 (2023-08-21)Update dependencies: drop cryptography.Add ECIES support.0.4 (2023-07-21)Migrate from pipenv to poetryUpgrade Python requirement to 3.10Fix a race condition in NDNAppv2Add support to State-Vector-Sync (SVS)0.3-3 (2023-05-26)Add NDNAppv2Add NDN-DPDK Supportencoding: Add MapField0.3-2 (2022-06-11)Bug fix.Add key suggestion to LVS checker.Support implicit digest in Interest name for express_interest.Add more interfaces for security.Update ci.Add Ed25519 algorithm.0.3-1 (2022-03-20)Add Light VerSec and cascade validator.Add UDP support.Support remote prefix registration.NDNLPv2 protocol update.NDN 0.3 protocol update (ForwardingHint).Add Boost INFO parser.Drop Python 3.8 support due to typing hint incompatability.
CPython 3.8 should still work, but PyPy 3.8 is known to be incompatible.Bug fixes.0.3 (2021-11-21)Addexpress_raw_interestfunction toNDNApp.Add validator for known keys.Add CodeQL scanning.Add support to Windows CNG as a TPM backend.Add binary toolspyndntools,pyndnsecandpynfdc.Transition to Name Convention Rev03.Add automatic type conversion forEnum,Flagandstr.Drop Python 3.7 support and add Python 3.10.0.3a1-3 (2021-05-22)Support Unix socket on Windows 10.Fix semaphore running in a different event loop bug.0.3a1-2 (2021-04-29)Handle ConnectionResetError.Drop Python 3.6 support.0.3a1-1 (2021-01-31)Transfer the repo tonamed-data/python-ndn.Fix cocoapy to make it work on MacOS 11 Big Sur.Add more supports to NDNLPv2 (CongestionMark).Add dispatcher and set_interest_filter.0.3a1 (2020-09-24)Fix the bug that registering multiple prefices at the same time leads to 403 error.Add Name Tree Schema.Add.devcontainerfor VSCode Remote Containers and GitHub Codespaces.0.2b2-2 (2020-05-26)Change the default sock file path from/var/run/nfd.sockto/run/nfd.sockon Linux.Add FIB and CS management data structuresAddmake_network_nackRecognizeNDN_CLIENT_*environment variables0.2b2-1 (2020-03-23)Fix RuntimeWarning for hanging coroutine when main_loop raises an exception.Fix the issue when after_start throws an exception, the application gets stuck.Set raw_packet of express_interest and on_interest to be the whole packet with TL fields.0.2b2 (2020-02-18)Switch to Apache License 2.0.Add NDNApp.get_original_packet_value.Improve NDNApp.route and NDNApp.express_interest to give access the
original packet and signature pointers of packets.Fix typos in the documentation.Support more alternate URI format of Name Component (seg,off,v,tandseq)Update Python version to 3.8 and add PyPy 7.2.0 in GitHub Action.Fix Name.to_str so its output for[b'\x08\x00']is correct.0.2b1 (2019-11-20)The initial release.
Package: python-needle
NeedleNavigating nested structures easily.DescriptionThe idea behind this package is to provide a simple interface allowing to "flatten" nested structures into
a plain table where each key is represented as a fully qualified name that leads to a certain field in the
structure. It is especially useful when dealing with complex configuration objects that are merged into one
from several files or container, and include very long keys that aren't easily visualized via pretty printing.FunctionalityThe package's goal is to provide a simple interface for navigating configurations right in the terminal while
debugging an executed script. It provides two basic high-level functions:fromneedleimportsearch,viewobj={...}# some nested object# parsing keys (with optional depth limitation)s=search(obj,max_depth=3)print(s.top.flat_keys)# all keys available on the topmost levels.subsearch("dataset")# navigating to the "dataset" subsectionprint(s.top.flat_keys)# now, the "dataset" subsection is on the top of the stackview(obj)# starts an interactive mode as showed belowShowcaseWhy?The author of this package encountered a problem of navigating a deeply nested objects often enough to bother
writing a dedicated package that (in his opinion) should simplify that endeavor.
Package: python-nessus-client
Python Client forNessus 5.0 REST API.Nessus is a proprietary comprehensive vulnerability scanner which is developed by Tenable Network Security.
It is free of charge for personal use in a non-enterprise environment.DocumentationDocumentation is available online athttp://python-nessus-client.readthedocs.organd in thedocsdirectory.InstallationInstall using pippipinstallpython-nessus-clientExamplesREST resources are translated to methods.For example:ResourceMethod/users/listobject.users.list()/server/securesettings/&proxy%5Fport=8888object.server.securesettings(proxy_port='8888')and so on…To get users listhttps://nessus.example.com:8834/users/listwe calllist()method onUsersclass>>>fromnessusimportAPI>>>nessus=API('https://127.0.0.1:8834',username='user',password='pass')>>>printnessus.users.list()[{"admin":"TRUE","name":"test","lastlogin":1416492416}]To get server security settings listhttps://nessus.example.com:8834/server/securesettings/listwe callsecuresettings()method onServerclass>>>fromnessusimportAPI>>>nessus=API('https://127.0.0.1:8834',username='user',password='pass')>>>printnessus.server.securesettings(){"proxysettings":{"proxy_password":null,"proxy_port":"8080","custom_host":null,"proxy_username":null,"user_agent":null,"proxy":"10.0.0.1"}}To set server security settingshttps://nessus.example.com:8834/server/securesettingswe use the samesecuresettings()method onServerclass but we pass
as a argument settings to set up.>>>fromnessusimportAPI>>>nessus=API('https://127.0.0.1:8834',username='user',password='pass')>>>nessus.server.securesettings(proxy_port='8081')>>>printnessus.server.securesettings(){"proxysettings":{"proxy_password":null,"proxy_port":"8081","custom_host":null,"proxy_username":null,"user_agent":null,"proxy":"10.0.0.1"}}More examples can be found in the following subsections and in class documentation.Authenticating a userLogin to Nessus server>>>fromnessusimportAPI>>>nessus=API('https://127.0.0.1:8834',username='user',password='pass')Response is Python structureWe can acts like we work with dict.Get configuration value>>>printnessus.server.securesettings()['proxysettings']['proxy_port']8080Get name from second item in report list get list of hosts contained in a specified report>>>second_host=nessus.report.list()[1]['name']>>>printnessus.report.hosts(second_host){"scanprogresscurrent":"0","scanprogresstotal":"100",(...)}Make output more readable# before>>>printnessus.server.securesettings(){u'proxysettings':{u'proxy_password':None,u'proxy_port':u'8080',(...)# after>>>importjson>>>data=nessus.server.securesettings()>>>json.dumps(data,indent=2){"proxysettings":{"proxy_password":null,"proxy_port":"8080","custom_host":null,"proxy_username":null,"user_agent":null,"proxy":"10.0.0.1"}}Check if report has audit trail>>>nessus.report.has_audit_trail(name)True>>>ifnessus.report.has_audit_trail(name):>>>print'Report{}has audit trail'.format(name)Report95c309f8-2578-fd3e-9e4d-a8aa6d6511e8b617b5a088c93309hasaudittrailCreate new scan# make list with hosts>>>target=['localhost','example.com']>>>nessus.scan.new(target,'test','-37')
Package: python-nestjs
python-nestPython library for nest style MicroservicesDescriptionThere is one nodejs framework namednestjswhich is perfect to develop microservices. but we wanted to
implement some microservices in python to work together with nestjs framework, I didn't find a solution, so I developed this
package to do that, for now, it only implemented theMessagePatternso in nestjs, it is @MessagePattern and we can have same function in python with this lib/package.How to useInstall latest versionpipinstallpython-nestjsThe microservices serverin nestjs, you can do it with @MessagePattern, and the pattern can be string or object in nestjs, similarly
in python the pattern can also be str or dict, you can find sample codetest_server.pyhere is sample code, e.g.in yournest_server.py#!/usr/bin/env python# -*- coding:utf-8 -*-fromnestimportNestMsServer,MessagePatternBaseHandlerapp=NestMsServer()to have handler function to process the pattern, you have two optionshave a class which extendsMessagePatternBaseHandlerhave the classclassTestDictHanlder(MessagePatternBaseHandler):def__init__(self):passdefget_message_pattern(self):'''return the message patternit can be string or dicte.g. 'TEST' or {'cmd': 'test'}'''return{'cmd':'TEST_PATTERN'}defhandle(self,payload):'''handler function to process payloadIt should returnserr - any error or Noneresult - the processed result'''print(payload)returnNone,['this is test dict','another test dict result']add/register the handler classapp.add_handler(TestDictHanlder)have a function decorated with decoratormessage_patternwrite a function and decorate it@app.message_pattern({'cmd':'test_decorator'})deftest_decorator(payload):'''test decorator functionthe function accepts one parameter payload'''print(payload)returnNone,payloadstart/run itHOST='localhost'PORT=7086print(f'started to run and listed to port{PORT}')app.run(HOST,PORT)The microservices clientif you want to call microservices which was implemented in nestjs, it is also simple, find intest_client.pyor sample code here.#!/usr/bin/env python# -*- coding:utf-8 -*-fromnestimportNestMsClientif__name__=='__main__':HOST='localhost'PORT=7086client=NestMsClient(HOST,PORT)pattern='TEST_PATTERN'res=client.send(pattern,None)print(res)pattern={'cmd':'TEST_PATTERN'}res=client.send(pattern,None)print(res)pattern={'cmd':'test_decorator'}res=client.send(pattern,'this is ok')print(res)Maintainers@jerrywang1981ContributorsLicenseMIT License