Saravanan666/pypi-org huggingface dataset:
Package: pyChaining
Installationpip install xethhung/pyChainingUsagefrompyChainingimportChainsxx=Chains.of([1,2,3,4,5,6,7]).list()assertxx==[1,2,3,4,5,6,7]xx=Chains.of([1,2,3,4,5,6,7]).filter(lambdax:x%2==1).list()assertxx==[1,3,5,7]xx=Chains.of([1,2,3,4,5,6,7]).filter(lambdax:x%2==1).map(lambdax:x*2).list()assertxx==[2,6,10,14]xx=Chains.of([1,2,3,4,5,6,7]).filter(lambdax:x%2==1).map(lambdax:x*2).skip(1).list()assertxx==[6,10,14]xx=Chains.of([1,2,3,4,5,6,7]).filter(lambdax:x%2==1).map(lambdax:x*2).skip(2).list()assertxx==[10,14]xx=Chains.of([1,2,3,4,5,6,7]).filter(lambdax:x%2==1).map(lambdax:x*2).first()assertxx==2xx=Chains.of([1,2,3,4,5,6,7]).filter(lambdax:x%2==1).map(lambdax:x*2).last()assertxx==14xx=Chains.of([1,2,3,4,5,6,7]).skipUntil(lambdax:x==2).list()assertxx==[2,3,4,5,6,7]xx=Chains.of([1,2,3,4,5,6,7]).stopBefore(lambdax:x==5).list()assertxx==[1,2,3,4]xx=Chains.of([1,2,3,4,5,6,7]).stopAt(lambdax:x==5).list()assertxx==[1,2,3,4,5]xx=Chains.of([1,2,3,4,5,6,7]).stopAfter(lambdax:x==5,1).list()assertxx==[1,2,3,4,5,6]xx=Chains.of([1,2,3,4,5,6,7]).flatMap(lambdax:[x,x]).list()assertxx==[1,1,2,2,3,3,4,4,5,5,6,6,7,7]xx=Chains.of([[1,2,3],[4,5],[6,7]]).flatten().list()assertxx==[1,2,3,4,5,6,7]
Package: py-chains
Python Chained Generators for Network Packets:Read the
DocsInstallationpip install py-chainsDocumentationchains.readthedocs.orgAboutThe Chains project is an exploration of python components that you
‘chain’ together to process streaming network packets. The use of
native python generators means the code is extremely lightweight and
efficient.Example# Create the classes
streamer = packet_streamer.PacketStreamer(iface_name=data_path, max_packets=10)
meta = packet_meta.PacketMeta()
rdns = reverse_dns.ReverseDNS()
printer = packet_printer.PacketPrinter()

# Set up the chain
meta.link(streamer)
rdns.link(meta)
printer.link(rdns)

# Pull the chain
printer.pull()Example OutputTimestamp: 2015-05-27 01:17:07.919743
Ethernet Frame: 6c:40:08:89:fc:08 --> 01:00:5e:00:00:fb  (type: 2048)
Packet: IP 192.168.1.9 --> 224.0.0.251 (len:55 ttl:255) -- Frag(df:0 mf:0 offset:0)
Domains: LOCAL --> multicast_dns
Transport: UDP {'dport': 5353, 'sum': 59346, 'sport': 5353, 'data': '...', 'ulen': 35}
Application: None

Timestamp: 2015-05-27 01:17:07.919926
Ethernet Frame: 6c:40:08:89:fc:08 --> 33:33:00:00:00:fb  (type: 34525)
Packet: IP6 fe80::6e40:8ff:fe89:fc08 --> ff02::fb (len:35 ttl:255)
Domains: LOCAL --> multicast_dns
Transport: UDP {'dport': 5353, 'sum': 6703, 'sport': 5353, 'data': '...', 'ulen': 35}
Application: None
...LICENSEMIT Licensed
Package: pychame
PychameWhy Pychame?Pychame provides a simple and convenient way to access and utilize the integrated camera of a Chromebook within the OpenCV library. It eliminates the complexities of setting up camera access and enables seamless integration with OpenCV for capturing and processing camera frames.Key FeaturesEasy integration: Pychame simplifies the process of accessing the Chromebook camera and integrating it with OpenCV.Real-time camera capture: Pychame allows you to capture camera frames in real-time, enabling various computer vision and image processing applications.Efficient performance: Pychame optimizes the camera capture process to ensure smooth and efficient frame retrieval.Compatibility: Pychame is designed specifically for Chromebook devices, leveraging their unique camera capabilities.HTTPS support: Pychame includes HTTPS support for secure camera frame transmission over the network.InstallationYou can install Pychame using pip, the Python package manager. Open a terminal or command prompt and run the following command:$pipinstallpychameUsageTo use Pychame in your project, follow these steps:Import the Pychame class:frompychame.videoimportVideoCreate an instance of the Pychame class:video=Video()Use the Read() method to retrieve camera frames:frame,success=video.Read()Process the captured frame using OpenCV or perform any desired operations.Repeat steps 3 and 4 to continuously capture frames in real-time.When you're finished, release the resources using the Release() method:video.Release()Enter in thelocal serverto start the cameraExampleHere's an example that demonstrates the basic usage of Pychame:frompychame.videoimportVideoimportcv2video=Video()whileTrue:frame,success=video.Read()ifnotsuccess:continuecv2.imshow("Camera Frame",frame)ifcv2.waitKey(1)&0xFF==ord('q'):breakvideo.Release()cv2.destroyAllWindows()LimitationsPychame is specifically designed for Chromebooks and may not work with other operating systems or devices.The performance of Pychame may vary depending on the hardware capabilities of the Chromebook and the complexity of the image processing tasks being performed.ConclusionPychame simplifies the process of using the integrated camera of a Chromebook with OpenCV, enabling you to build computer vision applications and perform real-time image processing tasks. It provides an intuitive interface and optimized performance, making it an ideal choice for Chromebook users interested in computer vision development.ByLucasOliveiraaa
Package: pychamp
Data Science Tools (pychamp)pychampis a data science tool intended to ease data science practices.Modulesconfigparser : It can be used for parsing configuration file formatjsonandini.connection : It can be used for creatingconnection URL,connection engineand forexecutingany type of sqlqueries.features_selection : It can be used for selecting features usingBackward Elimination,VIFandFeatures Importance.sampling : It can be used for different types of sampling operations such asSMOTE,SMOTENCandADASYNfor both categorical and numerical features.stats : It can be used forConfidence and Prediction Interval,IQR outlier removalandSummary Statistics.viz : It can be used for visualization.net : It can be used for sending mail currently.model : Different types of regression, classification and clustering models can be used.eda : It handles data types and missing values.
Package: py-chan-api
py-chan-apiObjective:Unification:Have one library to use for multiple imageboards. Convert them to 4chan compliant API specifications.Wrapper:Parse the JSON to programming-language-specific data structures (in this case, to Python).API Documentation4chanOfficialAlternateFFuuka based ImageboardsOfficial (Github)Official (Website)ReadthedocsFeatureSource✔️ Single threada.4cdn.org/{board}/thread/{threadnumber}.json✔️ Thread indexa.4cdn.org/{board}/{pagenumber}.json(threads @ pg #)✔️ Board lista.4cdn.org/boards.json✔️ Board cataloga.4cdn.org/{board}/catalog.json✔️ Thread lista.4cdn.org/{board}/threads.json✔️ Archived threadsa.4cdn.org/{board}/archive.json🚧 HTTPSOn by default inurllib3🚧 Rate limitingxrequests allowed innseconds🚧If-Modified-Sincereq.headers['last-modified']🚧 In-place thread updatingreq.headers['last-modified']; difflibExtra SupportExtra ImageboardsCompatibility✔️FFuukaThread,Post❔warosu❔yuki.laInstallation$pipinstallpy-chan-api# NOTE: Only Python 3.7+#Orwithvirtualenv$pipinstallvirtualenv# Install virtualenv if you haven't already$virtualenvvenv# Create a virtualenv$sourcevenv/bin/activate# Activate it$pipinstallpy-chan-api# Install py-chan-apiUsageimportpychan# pychan infers what type of object you're giving it. See the above table.# Whether its a string pointing to a file/dict/dict in string format.threadIndex=pychan.FourChan("thread_index.json")board=pychan.FourChan("boards.json")thread=pychan.FourChan("thread.json")threadList=pychan.FourChan("thread_list.json")archivedThread=pychan.FourChan("archived_threads.json")post=thread.posts[0]print(thread.posts[0].com)# Get the first post and its commentprint(post)# If you're unsure of what fields to call# just print the object itself to see a list of key/values# Or see the type of the unknown objectprint(type(pychan.FourChan("unknown.json")))print(thread.posts[0])print(threadIndex.threads[0].posts[1])print(board.trollflags.AC)print(board.boards[0].title)print(catalog.page[0].threads[0])print(threadList.page[0].threads[0])print(archivedThread[-1])# To get individual key value/pairsjdb=thread.posts[0].json# Convert the Post object to a dictionaryfork,vinjdb.items():# Iterate through the key/value pairsprint(k,v)ConvertingimportpychanfuukaThread=pychan.Fuuka("desu_thread.json")# Specify the imageboard implementation# Parallelism (multiprocessing) is turned on automatically if you supply more# than one key/value pairs in a dictionary.# You can override this behaviour by specifying the parallel field# By using a dictionary, you can also output it to a file.fthread1=pychan.Fuuka({"desu_thread.json":"out1.json"},parallel=True)# Which then you could read it as a normal 4chan jsonfthread=pychan.FourChan("out1.json")# We can also just use the outputed value from beforeprint(fthread1.posts[1])# Note: fthread1 is the same as fthread and fuukaThreadTestsTests are done withpytest.$pipinstall-Upytestpytest-xdist$pytesttests.py-vSupportPull requests are welcome.
Feel free to ping shiimizu @thisMatrix server.⚠️ Archiving (polling)Archiving capabilities are beyond the scope of this project.Please see:evehaydenbasc-archivergo-4chan-api
Package: py-chan-calculator
Py-Chan-CalculatorThis is a simple calculator packageHow to install the packagepipinstallpychancalculatorHow to import the packagefrom pychancalculator.calculator import CalculatorCode# create an instancecal=Calculator()# For the Additioncal.add(2,3)# return 5# For the Subtractioncal.dif(5,3)# return 2# For the divisioncal.div(6,3)# return 2# For the multiplicationcal.multi(8,2)# return 4
Package: pychangelog2
DescriptionSimple utility for quickly generating changelogs, assuming your commits are ordered as they should be. This tool will
simply log all latest commits till last created tag.Installationpython3-mpipinstall--user-Upychangelog2Example➜  pychangelog2 git:(master) ✗ pychangelog2 <path to some repo>
* b1682a0ba253f21a91fabb4d02b9a6d0ec177f7b git: add .idea to .gitignore
* d499ab0f39688e371287ccf3dfc67366e0f70a48 cli: lockdown: add device-name subcommand
* 03f0bee3219fc30aa4f3b378420f5a807eda13b9 requirements: pyusb>=1.2.1
* 7456890e51244e014352a01a9670c35368a68c56 Bugfix: AFC: Pull, push, cd and completion
* d84f3d19f4db5499f0cdcf09bc1b993a96ea1cb0 Replace distutils.LooseVersion with packaging.Version.
Package: py-channelmodel
py-channelmodelWe need channel models in wireless communications research all the time. This module tries to provide a model with coherence, power delay profiles, Rayleigh fading, frequency selectivity, and MIMO.InstallationThe module is available on PyPI. Just runpip3 install py-channelmodelOften, it is desirable to usepip3 install --user .... Also, you need Python 3 for this module. Currently, the module is tested on Python 3.8.Usageimport channelmodel as channel

channel = channel.ChannelFactory()

# use the channel objectRationaleThe intent of this module is to add a simple set of objects that one instantiates in a simulation. Thus, it should come with minimal dependencies and just provide channel model related operations.Supported modelsObviously, this module supports AWGN channels. However, it does also support functions related to Power Delay Profiles, Channel coherence, Time domain channels, frequency domain channels for multicarrier simulations, etc.PublicationsThis module was developed during the research for multiple papers and thus use therein.Demel et al."Industrial Radio Link Abstraction Models for Short Packet Communication with Polar Codes", SCC, VDE, Rostock, Germany, February 2019, DOI:10.30420/454862044Demel et al."Cloud-RAN Fronthaul Rate Reduction via IBM-based Quantization for Multicarrier Systems", WSA, VDE, Hamburg, Germany, February 2020Demel et al."Burst error analysis of scheduling algorithms for 5G NR URLLC periodic deterministic communication", VTC Spring, IEEE, Antwerp, Belgium, May 2020, DOI:10.1109/VTC2020-Spring48590.2020.9129493ReferencesT. Rappaport "Wireless Communications", 2009, 2nd Ed., Prentice Hall, Upper Saddle River, NJ, USA, ISBN: 978-0-13-042232-3B. Sklar "Digital Communications: Fundamentals and Applications", 2001, 2nd Ed., Prentice Hall, Upper Saddle River, NJ, USA, ISBN: 0-13-084788-7J. Proakis "Digital Communications", 1995, 3rd Ed., McGraw-Hill, NY, USA, ISBN: 978-0-07-051726-4F. Molisch et al."IEEE 802.15.4a channel model - final report", 2005, IEEEETSI,"5G: Study on channel model for frequencies from 0.5 to 100 GHz", Technical Specification 138.901 V16.1.0, Sophia-Antipolis, France, November 2020Düngen et al."Channel measurement campaigns for wireless industrial automation", at - Automatisierungstechnik, January 2019, DOI:10.1515/auto-2018-0052
Package: pychapter
PyChapter=========PyChapter is a python3.5 series management tool.PyChapter is asynchronous, beware of coroutines!Using various data providers for each kind of data needed, we gather as manyinformation as we can to provide... image:: https://img.shields.io/pypi/v/pychapter.svg:target: https://pypi.python.org/pypi/pychapter.. image:: https://img.shields.io/travis/XayOn/pychapter.svg:target: https://travis-ci.org/XayOn/pychapter.. image:: https://readthedocs.org/projects/pychapter/badge/?version=latest:target: https://readthedocs.org/projects/pychapter/?badge=latest:alt: Documentation Status* Free software: ISC license* Documentation: https://pychapter.readthedocs.org.PyChapter providers-------------------There are currently 3 types of data providers:* File providers* Info providers* Subs providersFile providers++++++++++++++File providers allow us to actually GET the chapter.Currently, only kat.cr + torrent management is implementedSubs providers++++++++++++++Subs providers allow us to get subtitles for a chapterAt this point, subtitles are forced to english and only addict7edis supportedInfo providers++++++++++++++Get all kind of data related to a specific chapter (plot, title, cover,series plot, series seasons...)API---PyChapter provides a simple endpoint as kind-of an example use.It's installed with the package as an entry_point with the name "pychapter",so you can just run "pychapter" and it'll launch the sample API runningon localhost:8080.TODO: Link API docs here from api.pyComplete series management--------------------------This is a simple example of the usage of "Series" object to getan entire series' main file objects.::async def get_magnets(serie_name):for season in Series(title=serie_name):for chapter in season.chapters:print(await chapter.file)Features--------* Simple REST API* Easily extensible* Subtitles, Files and Info managementCredits---------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template... _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage=======History=======0.1.3-----* Multiple refactoring, all hail asyncio.0.1.1-----* First stable release0.1.0 (2016-1-22)------------------* First release on PyPI.
Package: pychapter10
PyChapter10 is an open source pure Python library for reading and writing IRIG 106
Chapter 10 (now 11) files. Tested on all 3 major platforms with Python 3.6+.InstallationInstall the latest version with pip:pip install pychapter10To install offline from “full” zip, install the included dependencies and the library with:pip install dependencies/* .Note:you may also install cbitstruct for a performance improvement.Basic UsagePyChapter10 provides a pythonic API to read, write, and update Chapter 10 data.fromchapter10importC10# Find all 1553 messages in a fileforpacketinC10('<filename>'):ifpacket.data_type==0x19:formsginpacket:# do something with the messageSupported DatatypesTypeNameSupported0x00Computer-Generated F0 - User-DefinedUser-Defined0x01Computer-Generated F1 - Setup Record (TMATS)Yes0x02Computer-Generated F2 - Recording EventsYes0x03Computer-Generated F3 - Recording IndexYes0x04Computer-Generated F4 - Streaming Config (TMATS)No0x09PCM F1Yes0x11Time Data F1Yes0x12Time Data F2No0x191553 F1Yes0x1A1553 F2 - 16PP194Yes0x21Analog F1Yes0x29Discrete F1Yes0x30Message F0Yes0x38ARINC-429 F0Yes0x40Video F0Yes0x41Video F1Yes0x42Video F2Yes0x43Video F3No0x44Video F4No0x48Image F0Yes (untested)0x49Image F1Yes (untested)0x4AImage F2Yes (untested)0x50UART F0Yes0x58IEEE 1394 F0Yes (untested)0x59IEEE 1394 F1Yes (untested)0x60Parallel F0Yes (untested)0x68Ethernet F0 - Ethernet DataYes0x69Ethernet F1 - UDP PayloadYes0x70TSPI/CTS F0 - GPS NMEA-RTCMNo0x71TSPI/CTS F1 - EAG ACMINo0x72TSPI/CTS F2 - ACTTSNo0x78Controller Area Network BusNo0x79Fibre Channel F0No0x7AFibre Channel F1NoRunning TestsTo run the included test suite install pdm and dev dependencies with pip:pip install pdm
pdm install --devThen run:pytestBuilding the DocumentationAfter installing dependencies (or just “pip install sphinx”) Build the docs with:python setup.py build_docsThe generated HTML will be in docs/htmlNote:“Full” zip includes built documentation already.ContributingSeeCONTRIBUTING
Package: pychargecloud
pychargecloudFetches data about public ev charge points from chargecloud.deExample:importsysimportchargecloudapiimportaiohttpimportasyncioimportloggingasyncdefmain():asyncwithaiohttp.ClientSession()assession:api=chargecloudapi.Api(session)locations=awaitapi.location_by_evse_id("DECCH*ECCH1800155EBG*2")print(locations)if__name__=="__main__":logging.basicConfig(stream=sys.stdout,level=logging.DEBUG)loop=asyncio.new_event_loop()loop.run_until_complete(main())See also src/main.py
Package: pycharlockholmes
Charlock HolmesCharacter encoding detecting library for Python using [ICU](http://site.icu-project.org/) and libmagic. Inspired by [Charlock Holmes](https://raw.github.com/brianmario/charlock_holmes)Dependency
1. icu
2. file(libmagic)Gentoo
emerge -av dev-libs/icu
emerge -av sys-apps/fileUbuntu
apt-get install libmagic-dev
apt-get install libicu-devInstallpython setup build
python setup installUsagefrom charlockholmes import detect
file = open(‘test.txt’)
content = file.read()
print detect(content)
Package: pycharm-remote-debugger
Pycharm Remote DebuggerWith PyCharm you can debug your application using an interpreter that is located on the other computer,
for example, on a web server or dedicated test machine.Installationpipinstallpycharm_remote_debuggerStepsCreate a deployment configuration for a remote interpreter.Ensure that you have SSH access to the remote machineDeploy your application to a remote hostCreate a Python Debug Server run/debug configurationSpecify the port number, and the IDE host addressMap the path on the local machine to the path on the remote machineMake sure you are installing pycharm_remote_debugger on the remote machine/containerRun your software using pycharm_remote_debugger module:Create and entry point file that execute your code and login to the debugger.frompycharm_remote_debuggerimportPycharmRemoteDebuggerremote_addr="10.2.55.1"port=6789debugger=PycharmRemoteDebugger(remote_addr,int(port))debugger.debug()main()# run your software hereUse the command line:python-mpycharm_remote_debugger-r10.2.55.1-p6789-mmy_module_name-kmodule_arg1-s-kmodule_arg2Start debugger on pycharmDebug your program :)Arguments:
Package: py-chartmetric-api
py_chartmetric_apipy_chartmetric_api is a simple Python library for retrieving data fromchartmetrics.com.RequirementsPython 3.9 or laterInstallation$pipinstallpy_chartmetric_apiUsageimportpy_chartmetric_api# returns first 100 artists that had a first relaase 30 days ago or lesspy_chartmetric_api.artist.get_artists_with_filters(0,100,{"firstReleaseDaysAgo":"30"})# returns 300 artists that have between 1000 and 100000 spotify followerspy_chartmetric_api.artist.get_artists_by_stats("sp_followers",1000,100000,300)Refer to examply.py for a more in-depth exampleContributingPull 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.LicenseMIT
Package: pychartweb
pygraphDeveloped by Harsh-singh586 2021Examples of How To Useimportpychartwebg1=pychartweb.graph(name,x-xis)g1.adddata(graph_type,lebel,y-axis,background_color)g1.adddata(graph_type,lebel,y-axis,background_color)pychartweb.show([g1])Example Single Graphimportpychartweb# Choose Oneg1=pychartweb.graph('first',['firstval','secval'])g1.adddata('bar','test',[4,3],['yellow','green'])pychartweb.show([g1])Example Multiple Graphimportpychartweb# Choose Oneg1=pychartweb.graph('first',['firstval','secval'])g1.adddata('bar','test',[4,3],['yellow','green'])g2=pychartweb.graph('second',['firstval','secval'])g2.adddata('bar','test',[8,7],['yellow','green'])pychartweb.show([g1,g2])Example Mixed Graphimportpychartweb# Choose Oneg1=pychartweb.graph('first',['firstval','secval'])g1.adddata('bar','test',[4,3],['yellow','green'])g1.adddata('line','test',[8,7],['red','blue'])pychartweb..show([g1])You can see your graph onhttp://localhost:8000NOTE:No two graph name can be sameNumber of values on y-axis must be same as x-axisGraphs Available'bar''line''polar''doughnut''pie'Check out:https://github.com/Harsh-singh586/pygraph
Package: pychastic
PyChasticAll python stochastic differential equations (SDE) solver.Built for stochastic simulations of hydrodynamically interacting
brownian particles (molecular dynamics), but can do much more
(such as option pricing in stochastic volitality models).Usesjax,jax.jitandjax.gradfor performace and ease of use.Usageimportpychasticproblem=pychastic.sde_problem.SDEProblem(lambdax:0.2*x,lambdax:0.5*x,1.0,2.0)solver=pychastic.sde_solver.SDESolver()trajectory=solver.solve(problem)importmatplotlib.pyplotaspltplt.plot(trajectory['time_values'],trajectory['solution_values'])plt.show()LicenseThis software is licensed under MIT licenseCopyright (c) Radost Waszkiewicz and Maciej Bartczak (2021).How to citeWaszkiewicz, R., Bartczak M., Kolasa K. and Lisicki M.Pychastic: Precise Brownian Dynamics using
Taylor-Ito integrators in Python; Sci-Post (submitted) (2022)
Package: pychatangobot
License : MITSummaryAsyncio implementation of Chatango Bot done by Lumirayz, seeChatango Bot
Tutorial.You can run this as a single process program or multiprocesses.There are runner scripts example not included when you pip install the package,
check them out atPyChatangoBot,
we have “run-bot” for single process and “run-multibot” for multiple processes.InstallationSimplypip install pychatangobot.
Package: pychatapp
PyChatAppIt is a chatting application written in Python, purpose of PyChatApp is to bring python community together
and connect with various Pythonistas around the world.InstallationpipinstallpychatappUsageimportpychatapppychatapp.start()ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: pychatbotlib
PyChatbotLibExclusive library for creating chatbots.It uses a very simple neural network which helps to recognize possible answers to messages.You just need to train it in chats with 2 types of messages: reply and original.Installationpip install pychatbotlibExample of usageimporttelebot# pip3 install PyTelegramBotAPI==2.2.3fromtimeimportsleepfromchatbotimportChatbotbot=telebot.TeleBot('APIKEY')chatbot=Chatbot("chatbot_data")@bot.message_handler(content_types=["text"])defhandle_message(message):try:chatbot.add_data(message.text,message.reply_to_message.text)answer=chatbot.get_reply(message.text)ifanswerisnotNone:bot.reply_to(message,answer)exceptExceptionase:answer=chatbot.get_reply(message.text)ifanswerisnotNone:bot.reply_to(message,answer)print("Not a reply")whileTrue:try:bot.polling(none_stop=True)exceptExceptionase:bot.polling(none_stop=True)