Saravanan666/pypi-org huggingface dataset:
Package: py3bloxx
GitHub|Discord|PyPI|Documentation|Examples|LicenseWrite a mailOverviewWelcome to pyblox! pyblox is an asynchronous, object-oriented wrapper for the Roblox web API.FeaturesThe key features are:Asynchronous: pyblox works well with asynchronous frameworks likeFastAPIanddiscord.py.Easy: pyblox's client-based model is intuitive and easy to learn for both the beginner and expert developer. It
abstracts away API requests and leaves you with simple objects that represent data types on the Roblox platform.Flexible: pyblox's builtin Requests object allows the user to do things that we haven't already implemented
ourselves without dealing with advanced Roblox-specific concepts.InstallationTo install pyblox from PyPI, you can install with pip:pip install py3bloxxTo install the latest unstable version of pyblox, installgit-scmand run the following:pip install git+https://github.com/invalidkaro/pyblox.gitTutorialLearn how to use pyblox in our docs:https://https://pyblox-docs.invalidkaro.dev/dev/tutorial/
Package: py3botsentinel
Py3BotSentinelPyBotSentinel is an API wrapper forBotSentinel. It's simple in functionality as at this point,
it only provides you a rating, and the description of what that rating means to
BotSentinel.RequirementsThis requires Python 3.6 and above, and was built on Python 3.8. It requires
requests, ScraPyInstallationI recommend you install this via pip3 (PyPi)$pip3installpy3botsentinelGetting Started and Finishedimportpybotsentinelquery=pybotsentinel.PyBotSentinel()rating=query.get_bot_rating('realdonaldtrump')>>>rating[True,30,'Moderate','Our analysis has concluded realdonaldtrump exhibits moderate tweet activity and is not a trollbot account.']TroubleshootingIf you end up getting an occasional 403 while querying, it's most likely due to a race condition
as a result of making the GET request to the page to get the one-time-key
for BotSentinel's backend API, the next key generates before the POST call is made,
the POST call to the API is made, and the API returns a JSON object of {'success': False,
'bot_rating': 'INCORRECT_DATA'} with a HTTP status code code of 403. If a
subsequent query is made for the same user, it will succeed and return the user's bot
rating.
Package: py3-bp
Python 3 boilerplate templateAs afreelancerI often require
to do small projects on python. As any developer I do not like to do same
boilerplate work each time, but I like to work in expected environment.
So I decided to make this small project and include everything I often
need in one place.This project for small non-web projects.Project is under development. Unreleased features available at master branch.
Most fresh changes data available inCHANGELOGCurrent project featuresReadme file generation for new projects. Available formats:MarkdownorreStructuredTextAuthors file generation for new projects. Available formats:MarkdownorreStructuredTextChangelog file generation for new projects. Available formats:MarkdownorreStructuredTextLicense file generation for new projects. Generated asLICENSEin root
folder and asreStructuredTextindocsfolder.
Available licenses:MITBSD-3GNU GPL v3.0Apache Software License 2.0unlicensed (Public domain)Sphinx doc folder and project generation. Configured for separatedsourceandbuildfolders.setup.pyandsetup.cfggeneration.requirements.txtandrequirements.devgeneration based on template
choices.UsageSingle time usage example, requires installation ofCookiecutter:cookiecutterhttps://github.com/insspb/py3-bpRoadmapInclude pytest sample tests if pytest enabledInclude tox sample configuration filesInclude nox sample configuration filesInclude Alembic sample configuration filesInclude Travis CI sample configuration filesInclude Gitlab CI sample configuration filesInclude AppVeyor CI sample configuration filesCurrently this project is in 'I have an idea' stage.Project python versionThis project is developed and tested on python version 3.6 and python 3.7, but
should work under any python 3.2+.
Package: py3c
py3c helps you port C extensions to Python 3.It provides a detailed guide, and a set of macros to make porting easy
and reduce boilerplate.Design principlesReduce chances of accidental subtle errorsMinimize boilerplatePrefer the Python 3 way of doing thingsMinimize semantic changes under Python 2VersionsProjects using py3c will be compatible with CPython 2.6, 2.7, and 3.3+.GuidesA detailedporting guideis provided.Acheatsheetis available for those that already know the Python C API,
and want to know what the py3c macros do.InstallationIf your build system supports pkg-config, you can set it up
to look for a system-wide installation of py3c.Alternately, py3c can be used as a header-only library:
copy the headers to your project and use them.If you wish to install py3c system-wide (e.g. if you are a distro packager),
see theContributingchapter in the documentation.ContributeIssue Tracker:http://github.com/encukou/py3c/issuesSource Code:http://github.com/encukou/py3cLicenseThe code is licensed under the MIT license. May it serve you well.The documentation is licensed under CC-BY-SA 3.0.See the files LICENSE.MIT and doc/LICENSE.CC-BY-SA-3.0.
Package: py3-calendar
CalendarA Python Package that gives access to various calendars and timezones. from days to years we have got it all!You can use our simple syntax to convert into budhist calendar, hijri, and gregorian. more coming soon!gregorian() # Get The Gregorian Year.

hijri() # Get The Hijri Year.

hijri_to_gregorian(val=1444, PrintOut=False) # Convert Hijri To Gregorian.

gregorian_to_hijri(val=2023, printOut=False) # Convert Gregorian to Hijri.

gregorian_to_buddhist(val=2023, PrintOut=False) # Convert Gregorian to Buddhist.

buddhist_to_gregorian(val=2566, PrintOut=False) # Convert 
buddhist to gregorian.Copyright 2023 Rayaan khanAll RIghts Reserved
Package: py3canal
pycanal一.pycanal 简介pycanal 是阿里巴巴开源项目Canal是阿里巴巴mysql数据库binlog的增量订阅&消费组件 的 python 客户端。为 python 开发者提供一个更友好的使用 Canal 的方式。Canal 是mysql数据库binlog的增量订阅&消费组件。基于日志增量订阅&消费支持的业务：数据库镜像数据库实时备份多级索引 (卖家和买家各自分库索引)search build业务cache刷新价格变化等重要业务消息关于 Canal 的更多信息请访问https://github.com/alibaba/canal/wiki二.应用场景pycanal 作为Canal的客户端，其应用场景就是Canal的应用场景。关于应用场景在Canal介绍一节已有概述。举一些实际的使用例子：1.代替使用轮询数据库方式来监控数据库变更，有效改善轮询耗费数据库资源。2.根据数据库的变更实时更新搜索引擎，比如电商场景下商品信息发生变更，实时同步到商品搜索引擎 Elasticsearch、solr等3.根据数据库的变更实时更新缓存，比如电商场景下商品价格、库存发生变更实时同步到redis4.数据库异地备份、数据同步5.根据数据库变更触发某种业务，比如电商场景下，创建订单超过xx时间未支付被自动取消，我们获取到这条订单数据的状态变更即可向用户推送消息。6.将数据库变更整理成自己的数据格式发送到kafka等消息队列，供消息队列的消费者进行消费。三.工作原理pycanal  是 Canal 的 python 客户端，它与 Canal 是采用的Socket来进行通信的，传输协议是TCP，交互协议采用的是 Google Protocol Buffer 3.0。四.工作流程1.Canal连接到mysql数据库，模拟slave2.pycanal 与 Canal 建立连接2.数据库发生变更写入到binlog5.Canal向数据库发送dump请求，获取binlog并解析4.pycanal 向 Canal 请求数据库变更4.Canal 发送解析后的数据给pycanal5.pycanal收到数据，消费成功，发送回执。（可选）6.Canal记录消费位置。五.快速启动安装CanalCanal 的安装以及配置使用请查看https://github.com/alibaba/canal/wiki/QuickStart环境要求python >= 3构建canal python客户端pipinstallpy3canal建立与Canal的连接importtimefrompycanal.clientimportCanalClientfrompycanal.protocolimportEntryProtocol_pb2fromtornado.ioloopimportIOLoopasyncdefmain():whileTrue:canal=CanalClient(host="10.88.190.151",port=21111)awaitcanal.connect()awaitcanal.check_valid()awaitcanal.subscribe(client_id=b"14001",destination=b"pandora")whileTrue:try:message=awaitcanal.get(100)entries=message["entries"]forentryinentries:entry_type=entry.entryTypeifentry_typein[EntryProtocol_pb2.EntryType.TRANSACTIONBEGIN,EntryProtocol_pb2.EntryType.TRANSACTIONEND]:continuerow_change=EntryProtocol_pb2.RowChange()row_change.MergeFromString(entry.storeValue)header=entry.headerdatabase=header.schemaNametable=header.tableNameevent_type=header.eventTypeforrowinrow_change.rowDatas:ifevent_type==EntryProtocol_pb2.EventType.DELETE:format_data=dict()print("delete:{}".format(EntryProtocol_pb2.EventType.DELETE))forcolumninrow.beforeColumns:format_data[column.name]=column.valuedata=dict(db=database,table=table,event_type=event_type,data=format_data,)print(data)elifevent_type==EntryProtocol_pb2.EventType.INSERT:format_data=dict()print("insert:{}".format(EntryProtocol_pb2.EventType.INSERT))forcolumninrow.afterColumns:format_data[column.name]=column.valuedata=dict(db=database,table=table,event_type=event_type,data=format_data,)print(data)else:format_data=dict()format_data["before"]=format_data["after"]=dict()forcolumninrow.beforeColumns:format_data["before"][column.name]=column.valueforcolumninrow.afterColumns:format_data["after"][column.name]=column.valuedata=dict(db=database,table=table,event_type=event_type,data=format_data,)print(data)exceptExceptionase:print(e)breaktime.sleep(1)canal.disconnect()time.sleep(2)if__name__=="__main__":io_loop=IOLoop.current()io_loop.run_sync(main)更多详情请查看Sample
Package: py3chrome
pychromeA Python Package for the Google Chrome Dev Protocol,more documentTable of ContentsInstallationSetup ChromeGetting StartedTab managementDebugExamplesRefInstallationTo install pychrome, simply:$ pip install -U pychromeor from GitHub:$ pip install -U git+https://github.com/fate0/pychrome.gitor from source:$ python setup.py installSetup Chromesimply:$ google-chrome --remote-debugging-port=9222or headless mode (chrome version >= 59):$ google-chrome --headless --disable-gpu --remote-debugging-port=9222or use docker:$ docker pull fate0/headless-chrome
$ docker run -it --rm --cap-add=SYS_ADMIN -p9222:9222 fate0/headless-chromeGetting Startedimport pychrome

# create a browser instance
browser = pychrome.Browser(url="http://127.0.0.1:9222")

# create a tab
tab = browser.new_tab()


# register callback if you want
def request_will_be_sent(**kwargs):
    print("loading: %s" % kwargs.get('request').get('url'))


tab.Network.requestWillBeSent = request_will_be_sent

# start the tab 
tab.start()

# call method
tab.Network.enable()
# call method with timeout
tab.Page.navigate(url="https://github.com/fate0/pychrome", _timeout=5)

# wait for loading
tab.wait(5)

# stop the tab (stop handle events and stop recv message from chrome)
tab.stop()

# close tab
browser.close_tab(tab)or (alternate syntax)import pychrome

browser = pychrome.Browser(url="http://127.0.0.1:9222")
tab = browser.new_tab()

def request_will_be_sent(**kwargs):
    print("loading: %s" % kwargs.get('request').get('url'))


tab.set_listener("Network.requestWillBeSent", request_will_be_sent)

tab.start()
tab.call_method("Network.enable")
tab.call_method("Page.navigate", url="https://github.com/fate0/pychrome", _timeout=5)

tab.wait(5)
tab.stop()

browser.close_tab(tab)more methods or events could be found inChrome DevTools ProtocolDebugset DEBUG env variable:Tab managementrunpychrome -hfor more infoexample:Examplesplease see theexamplesdirectory for more examplesRefchrome-remote-interfaceChrome DevTools Protocol
Package: py3collections
Py3CollectionsPy3Collections is colletion of python scripts, modules and packages that are usefull in variety of
situations. The modules and packages include collection of usefull python scripts that can be used
by importing in your python code.This package also contains some python scripts that can be executed from the command line. This
package is tested using tox on variety of python versions to make sure they work as expected.How can i use this package.To use this package you can install it from pypi and import the modules from your python code
or use the command line tools from the terminal.pipinstallpy3collectionsCommand Line ScriptsThe following are curated list of stand alone python scripts that can executed from the command lineconverter: python image format converter.
Package: py3createtorrent
py3createtorrentCreate torrents via command line!py3createtorrent is a comprehensive shell/commandline utility for creating torrents (Linux & Windows).FeaturesSome of the features:create torrents withmultiple trackersortrackerless torrentsautomatically choose the most reliable trackersfromngosang/trackerslistfast torrent creation thanks tomultithreadingaddwebseedsto torrentscreateprivate torrents(disabled DHT, ...)exclude specific files/foldersexclude files/folders based onregular expressionsspecifycustom piece sizesspecify custom creation datesBasic usageCreating a torrent is as simple as:py3createtorrent -t udp://tracker.opentrackr.org:1337/announce file_or_folderThe shortcutbestNcan be used for conveniently adding the best N trackers
fromngosang/trackerslist. Example:py3createtorrent -t best3 file_or_folderMultiple trackers can also be specified manually by using-tmultiple times, for example:py3createtorrent -t udp://tracker.opentrackr.org:1337/announce -t udp://tracker.cyberia.is:6969/announce file_or_folderInstallYou can install py3createtorrent by executing:pip3 install py3createtorrentOf course, you need to have Python 3 installed on your system. py3createtorrent requires Python 3.5 or later.Full documentationhttps://py3createtorrent.readthedocs.io/en/latest/user.html
Package: py3curl
将 python 的 requests 代码转换成 curl 命令安装pipinstallpy3curl使用importrequestsimportpy3curlreq=requests.get('https://tendcode.com')result=py3curl.request_to_curl(req.request)print(result)### curl -k -v -X GET -H "Accept: */*" -H "Accept-Encoding: gzip, deflate" -H "Connection: keep-alive" -H "User-Agent: python-requests/2.19.1" https://tendcode.com/
Package: py3d
Scenario Tool KitScenarioGithubis a series of python libraries that helping building simulation environment easily and quickly. ClickHereto see documentspy3dpy3dis one of thescenariolibraries. It is a python 3d computational geometry library, which can deal with points, lines, planes and 3d meshes in batches.It is under development and unstable currently. But it is designed to be simple, stable and customizable:simple means api will be less than usual and progressivestable means it will have less dependeces and modules, and it will be fully testedcustomizable means it will be a libaray rather than an application, it only provide data structures and functions handling basic geometry conceptsInstallationpip install py3dExampleimportpy3dimportnumpycars=py3d.cube(0.5,0.2,0.3)@py3d.Transform.from_translation(y=range(1,6),z=0.15)cars.paint()t=0dt=0.1whilet<4:py3d.render(cars,t=t)cars@=py3d.Transform.from_rpy(py3d.Vector3(z=dt*numpy.linspace(0.1,1,5)))t+=dtpy3d.show()py3d.Color.standard((5,))API referenceVectorVector3Vector4TransformRotationColorTop
Package: py3db
database操作(支持 mysql mongodb elasticSearch sqlite3)How to usemysqlconnectmysql=MySql("localhost","root","123456","test")insert# insert into test values(1,'Mike','male')mysql.insert_one("test",columns_list=[1,"Mike","male"])# insert into test(id,name,gender) values(1,'Mike','male')mysql.insert_one("test",columns_dict={"id":1,"name":"Mike","gender":"male"})update#  update test set id=12 where id>12mysql.update('test',{'id':12},{"id":{"compare":">","value":12}})#  update test  set id=12 where name='mike'mysql.update('test',{'id':12},{"name":"mike"})select#  select * from test;mysql.select("test")#  select name,score,age from test;mysql.select("test",["name","score","age"])#  select name,score,age from test where name='XiaoMing';mysql.select("test",["name","score","age"],{'name':'XiaoMing'})delete#  delete from test;mysql.delete("test")#  delete from test where name='LiBai'mysql.delete("test",{"name":"LiBai"})mongodbelasticSearchsqlite3connectsqlite=Sqlite("localhost","root","123456","test")insert# insert into test values(1,'Mike','male')sqlite.insert_one("test",columns_list=[1,"Mike","male"])# insert into test(id,name,gender) values(1,'Mike','male')sqlite.insert_one("test",columns_dict={"id":1,"name":"Mike","gender":"male"})update#  update test set id=12 where id>12sqlite.update('test',{'id':12},{"id":{"compare":">","value":12}})#  update test  set id=12 where name='mike'sqlite.update('test',{'id':12},{"name":"mike"})select#  select * from test;sqlite.select("test")#  select name,score,age from test;sqlite.select("test",["name","score","age"])#  select name,score,age from test where name='XiaoMing';sqlite.select("test",["name","score","age"],{'name':'XiaoMing'})delete#  delete from test;sqlite.delete("test")#  delete from test where name='LiBai'sqlite.delete("test",{"name":"LiBai"})
Package: py3dbg
py3dbgmodified the PyDbg library to support x64 processes, enhancing its capabilities.
Some changes have been made to the code in this repository.(https://github.com/rchateauneu/pydbg)Install$pipinstallpy3dbgUsageimportpy3dbgimportpy3dbg.definesPROCESS_NAME=b"program.exe"defdebug_event_handler(dbg):ifdbg.dbg.u.Exception.dwFirstChance:returnpy3dbg.defines.DBG_CONTINUEelse:returnpy3dbg.defines.DBG_EXCEPTION_NOT_HANDLEDdefdebug_stack(dbg):# dump register valuescontext=dbg.dump_context()# dump stackstack=""address=0memsize=0x4ifnotpy3dbg.process_is_wow64(dbg.pid):address=dbg.context.Rspmemsize=0x8else:address=dbg.context.Espforiinrange(16):value=dbg.read_process_memory(address,memsize)stack+="{:#08x}:{}\n".format(address,value)address+=memsizereturnpy3dbg.defines.DBG_EXCEPTION_NOT_HANDLEDdbg=py3dbg.pydbg()dbg.load(PROCESS_NAME)dbg.set_callback(py3dbg.defines.EXCEPTION_ACCESS_VIOLATION,debug_stack)dbg.attach(dbg.pid)dbg.run()
Package: py3dephell
Py3DepHellThis project presents tools to work with dependencies and provides of python3 projects.py3reqThis module detects dependencies of python3 packages. It has verbose--helpoption, but here is simple example how to use it:py3provThis module generate provides for python3 packages. As forpy3reqits--helpis verbose enoughHow toImagine you have simple project like this one:src/
├── pkg1
│   ├── mod1.py
│   └── subpkg
│       └── mod3.py
└── tests
    └── test1.pyNow you want to detect its dependencies:% python3 -m py3dephell.py3req --pip_format src
unittest
re
reFeel free to make it more verbose:% python3 -m py3dephell.py3req --pip_format --verbose src
py3prov: detected potential module:src
/tmp/.private/kotopesutility/src/tests/test1.py:unittest
/tmp/.private/kotopesutility/src/pkg1/mod1.py:requests os
/tmp/.private/kotopesutility/src/pkg1/subpkg/mod3.py:reAs you can see, there are some modules from standard library, so let py3req to learn it:% python3 -m py3dephell.py3req --pip_format --add_prov_path /usr/lib64/python3.11 src
requestsThat's it! But what if we want to detect its provides, to understand which dependencies it could satisfy? Let's use py3prov!% python3 -m py3dephell.py3prov src
test1
tests.test1
src.tests.test1
mod1
pkg1.mod1
src.pkg1.mod1
mod3
subpkg.mod3
pkg1.subpkg.mod3
src.pkg1.subpkg.mod3Yeah, let's enhance the verbosity level!% python3 -m py3dephell.py3prov --verbose src/pkg1 src/tests
src/tests:['test1', 'tests.test1', 'src.tests.test1']
src/pkg1:['mod1', 'pkg1.mod1', 'src.pkg1.mod1', 'mod3', 'subpkg.mod3', 'pkg1.subpkg.mod3', 'src.pkg1.subpkg.mod3']
Package: py3dgame
<div align=”center”><img src=”assets/logo.gif” width=”100” alt=”rotating Py3dGame logo”># Py3dGame</div>Py3dGame is a simple 3D engine built on top of pygame.
Currenlty is in the early stages of development, but the first release will be out soon.## ❓Why Py3dGame is born❓Py3dGame originated as a personal project driven by the sheer joy of coding and the desire to enhance my skills. I acknowledge that Python might not be the optimal programming language for constructing a game engine, given its relatively slower performance. Nevertheless, as my primary objective is to learn and I thoroughly enjoy programming in Python, this limitation doesn’t bother me.## Features wishlistHere, a really optimistic features that I would like to implement in the feature:🌒 shadows handling⚛️ physics engine🤖 build a RL playground## ContributingIf you want to contribute you are more than welcome to do so! Have a look at the [Issues](https://github.com/Mattia-Vicari/py3dgame/issues) section to get started.
Package: py3dinterpolations
py3DinterpolationsDistributionTestingCode styleDocumentationThis is a python package to computequick 3D interpolations of spatial data.Supports thefollowing interpolationmethods:Ordinary 3D Kriging:pykrigeInverse Distance Weighting (IDW)Supportspreprocessingof data:DownsamplingNormalizationof X,Y,Z coordinatesStandardizationof signalVisualizations2D withmatplotlib3D withplotly.Installationpip install py3DinterpolationsDocumentationDocumentation with working examples can be foundhere.
Package: py3Dmol
A simple [IPython/Jupyter](http://jupyter.org/) widget to
embed an interactive [3Dmol.js](http://3dmol.org) viewer in a notebook.The widget is completely static, which means the viewer doesn’t need a running
IPython kernel to be useful and web pages and presentations generated from
the notebook will work as expected.  However, this also means there is only
one-way communication between the notebook and the viewer.If you experience problems, please file
an [issue](https://github.com/3dmol/3Dmol.js/issues).[An example notebook](http://nbviewer.jupyter.org/github/3dmol/3Dmol.js/blob/master/py3Dmol/examples.ipynb)InstallationFrom PyPI:pip install py3DmolImportant:In order to use with JupyterLab you must install the JupyterLab extension:jupyter labextension install jupyterlab_3dmolUsageOpen a notebookjupyter notebookand issue`Python import py3Dmol view =py3Dmol.view(query='pdb:1ubq')view.setStyle({'cartoon':{'color':'spectrum'}})view `APIThe returned view object has the exact same API as [$3Dmol.GLViewer](https://3dmol.org/doc/GLViewer.html)
with the exception that functions return None.LicenseMIT
Package: py3dotplus
b”========================================================nPy3DotPlus - Python interface to Graphviz’s Dot languagen========================================================nn.. image::https://pypip.in/py_versions/pydotplus/badge.pngn:target:https://pypi.python.org/pypi/pydotplus/n:alt: Supported Python versionsnn.. image::https://pypip.in/version/pydotplus/badge.png?text=versionn:target:https://pypi.python.org/pypi/pydotplus/n:alt: Latest Versionnn.. image::https://pypip.in/download/pydotplus/badge.pngn:target:https://pypi.python.org/pypi/pydotplus/n:alt: Downloadsnn.. image::https://pypip.in/license/pydotplus/badge.pngn:target:https://pypi.python.org/pypi/pydotplus/n:alt: Licensenn.. image::https://pypip.in/status/pydotplus/badge.pngn:target:https://pypi.python.org/pypi/pydotplus/n:alt: Statusnn.. image::https://travis-ci.org/carlos-jenkins/pydotplus.svg?branch=mastern:target:https://travis-ci.org/carlos-jenkins/pydotplusn:alt: Continuous Integrationnn.. image::https://coveralls.io/repos/carlos-jenkins/pydotplus/badge.pngn:target:https://coveralls.io/r/carlos-jenkins/pydotplusn:alt: CoveragennnAboutn=====nnPy3DotPlus is an improved version of the old pydot project that provides anPython Interface to Graphviz’s Dot language.nnhttp://pydotplus.readthedocs.org/nnDifferenceswith pydotplus:nn- Python 3.8 compatible.nnnInstallationn============nn::nn   pip install py3dotplusnnnDevelopmentn===========nn   https://github.com/carlos-jenkins/pydotplusnnRun code QA:nn::nn   pip install toxn   toxnnnDocumentationn=============nnUser guide and API Reference can be found in:nn   http://pydotplus.readthedocs.org/nnTo build it from source execute:nn::nn   pip install sphinx sphinx_rtd_themen   cd doc/n   make htmlnnnRequirementsn============nn-pyparsing: pydot requires the pyparsing module in order to be able ton  load DOT files.nn-GraphViz: is needed in order to render the graphs into any of then  plethora of output formats supported.nnnLicensen=======nnThis code is distributed under the MIT license. See LICENSE for details.n”