Saravanan666/pypi-org huggingface dataset:
Package: pygmyhdl
PygMyHDL is no longer supported or maintained because
it depends upon the ``byteplay3`` module which is only compatible
with Python 3.5.PygMyHDL is a thin wrapper aroundMyHDL. MyHDL lets you design
and simulate digital hardware using Python. PygMyHDL does the same thing,
but tries to make it a little simpler. Think of it as “MyHDL on training wheels”.
Once you get enough experience with PygMyHDL, you’ll probably cast it aside
and just use straight MyHDL. That’s OK; that’s why I invented it.Free software: MIT licenseDocumentation:http://devbisme.github.io/pygmyhdlFeaturesPygMyHDL adds the following features to MyHDL:WireandBusclasses for declaring single-bit and multi-bit digital signals.Busobjects have.oand.iproperties that are used to get the value on a
bus (that’s the.oproperty) and to drive values onto a bus (using the.iproperty).Stateobjects are used to declare state variables for finite-state machines.
EachStateobject also stores all the defined states in itssattribute
for use in making comparisons to states or updating state values.The@chunkdecorator is used to indicate a function will create one or more
pieces of logic circuitry. These pieces will be implicitly gathered into a
list of logic instances that can be simulated and synthesized later.
(MyHDL requires you to explicitly store logic instances into Python variables
so they can be found and processed later.)The decorators@comb_logicand@seq_logicare used to declare functions that
perform combinational and sequential logic operations, respectively. (These
are almost identical to MyHDL’s@always_comband@always_seqdecorators
except they assist with the implicit instantiation of logic.)Helper functions are provided for testing a digital design using random test
vectors, exhaustive test vectors, user-defined test vectors, or a simple clock signal.Themyhdlpeek moduleis used to display the
results of logic simulations as waveforms or tables.Getting StartedBelow are some examples of Jupyter notebooks using PygMyHDL.
Unfortunately, the Github Notebook viewer doesn’t render the waveform displays
so you’ll have to download and run the notebooks locally or click on the static HTML
link to see what PygMyHDL can do.The Fastest, Easiest FPGA Blinker, Ever!:[Notebook1][HTML1]Hierarchy and Abstraction and Ursidae, Oh My!:[Notebook2][HTML2]Pulse Width Modulators:[Notebook3][HTML3]Block (RAM) Party!:[Notebook4][HTML4]FSMs Without Monsters!:[Notebook5][HTML5]History0.0.4 (2021-07-06)Moved ownership from xesscorp to devbisme.0.0.3 (2017-11-05)Added State object for working with finite-state machines in PygMyHDL.0.0.2 (2017-09-20)Fixed Bus object so my_bus.o[m:n] now calls my_bus(m, n) to get a shadow slice instead of creating an array of wires.0.0.1 (2017-08-30)First release on PyPI.
Package: pygmyplot
Pygmyplot is a simplified wrapper aroundmatplotlib, designed to
make it easier to embed specific types of matplotlib plots
intoTkinterapplications while retaining matplotlib
levels of configurability.
The idea behind pygmyplot is similar to that
ofpython megawidgets (PMW), although the interface to pygmyplot
is not intended to be similar to PMW.
The four types of plots currently supported by pygmyplot are:X-Y PlotsScatter PlotsHistogramsHeat MapsSee thehtmldirectory in the download orhttp://pygmyplot.bravais.net/for complete documentation.
Package: pygmy-url
OverviewShorty is a URL Shortening and custom redirect link provider.With traditional URL shortening, it will generate a link based on the database
ID of the record (base36 encodded).In addition to traditional shortening you may also create a custom keyword name.
These are isolated into namespaces (/global /~user, and any you add).FeaturesCreate a shortend URL from any URL enteredReporting (Total hits, last used, created)Link time tracking (tracks create date and last time it was hit)External Authentication with LDAPMulti-userNamespacesNamespaces for keywords (global and user by default, custom ones may be added)Permissions for namespacesDatabase connection through sqlAlchemy via pugsql (Tested on MySQL and SQLite)MethodologyWhen an entry is added, it is added to the DB and given a unique “key”.  This
key is base36 encoded and always compared as lowercase.  This way if you are
communicating the URL, it can be entered in any form and it will still work.
This is why we are using base36 (a-z+0-9)RequirementsIdeally you would have a webserver running wgsi and point it at the wsgi.py file.  I have tested
this to work with uwsgi and nginx.InstallingI am working on getting this setup correctly through PyPI.  In the mean time it is a bit of a mess.Clone the repoEdit the conf/conf-dist.yaml with your values and save to conf.yamlcd to cloned_path/shortyrun shorty.pyhit localhost:5000That should make a connection to the DB and create the tables and you should be on your wayEventually I want to get the setuptools configured properly to do a normal install via whatever method you wantInspirationWhen trying to figure out the best way to accomplish a URL shortener, I found
thishttps://github.com/narenaryan/Pysterwhich I used as the base.  I modified
it HEAVILY, but to give credit where it is due, that is what I used as the base.
Package: pygn
Python Gateway Script from news to mail and vice versa.Copyright:Copyright (C) 2000-2001,2012 Cosimo Alfarano <kalfa@debian.org>Copyright (C) 2014 Matěj Cepl <mcepl@cepl.eu>A copy of the GNU General Public License, version 3, can be found in
the file COPYING.It is intended to be a full SMTP/NNTP rfc compliant gateway
with whitelist manager.You will probably have to install a mail-transport-agent and/or
news-transport-system package to manage SMTP/NNTP traffic.MTA is needed for mail2news service, since mail have to be
processed on a box where pyg is installed. You can use a remote
smtpserver for news2mail.News system is useful but not needed, since you can send articles to a
remote SMTP server (ie: moderated NG) where is installed pyg, otherwise you
will need it.It refers to rfc 822 (mail) and 850 (news).All issues, questions, complaints, or (even better!) patches
should be send via email to
[~mcepl/devel@lists.sr.ht](mailto:~mcepl/devel@lists.sr.ht) email
list (for patches use [git
send-email](https://git-send-email.io/)).
Package: pygnetic
pygneticis a library designed to help in the development of
network games and applications inPygame.FeaturesTwo approaches to handle network eventsgenerating events in pygame queueusing handler classesEfficient packaging of data through the message systemSupport for multiple network and serialization librariesInstallationpygneticcan be installed withwindows installeror withpip:pip install pygneticOptional requirementsMessage Pack(recommended)pyenetResourcesPackage on PyPI –http://pypi.python.org/pypi/pygneticRepository on Bitbucket –https://bitbucket.org/bluex/pygneticDocumentation –http://pygnetic.readthedocs.orgDevelopment blog –http://pygame-networking.blogspot.comCreditspygnetic is under development by Szymon Wroblewski <bluex0@gmail.com>
asGSoC 2012project and mentored by
Rene Dudfield <renesd@gmail.com>.
Package: pygnews
PyGNews :: OverviewPython Library for Scrapping Google News Feeds.Source Code:https://github.com/Law101/pygnews/RequirementsPython 3.6+ andpipPyGNews rest fully on:FeedparserRequestsBeautifulSoup4You don't need to install these separately, running the pip install below handles everything for you.InstallationpipinstallpygnewsExample# Import the Fetching Modulefrompygnewsimportfetcher# Create Fetching instancenews=fetcher.PyGNews()# Get stop stories from Google Newsprint(news.top_stories())LicenseThis project is licensed under the terms of the MIT license.
Package: pyg-npy
pyg-npypip install fromhttps://pypi.org/project/pyg-npy/conda install fromhttps://anaconda.org/yoavgit/pyg-npyA quick utility to save dataframes as npy files.It supports append and checks lightly on column names matching and index.For simple read/write/append, it is about 5-10 times faster than parquet writing or pystore.import numpy as np; import pandas as pd
from pyg_npy import pd_to_npy, pd_read_npy
import pystore
import datetime

pystore.set_path("c:/temp/pystore")
store = pystore.store('mydatastore')
collection = store.collection('NASDAQ')
arr = np.random.normal(0,1,(100,10))
df = pd.DataFrame(arr, columns = list('abcdefghij'))
dates = [datetime.datetime(2020,1,1) + datetime.timedelta(i) for i in range(-10000,0)]
ts = pd.DataFrame(np.random.normal(0,1,(10000,10)), dates, columns = list('abcdefghij'))

### write
%timeit collection.write('TEST', df, overwrite = True)
19.5 ms ± 1.97 ms per loop (mean ± std. dev. of 7 runs, 100 loops each)

%timeit df.to_parquet('c:/temp/test.parquet')
9.53 ms ± 650 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)

%timeit pd_to_npy(df, 'c:/temp/test.npy')
947 µs ± 38.5 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)


### read
%timeit collection.item('TEST').to_pandas()
7.7 ms ± 171 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)

%timeit pd.read_parquet('c:/temp/test.parquet')
2.85 ms ± 54.2 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)

%timeit pd_read_npy('c:/temp/test.npy')
847 µs ± 39.8 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)

### append
# because we need to append data with increasing index value, we use this:

collection.write('TEST2', ts.iloc[:100], overwrite = True)
%time len([collection.append('TEST2', ts.iloc[i*100: i*100+100], npartitions=2) for i in range(1,100)])
Wall time: 12.1 s

pd_to_npy(ts.iloc[:100], 'c:/temp/test.npy')
%time len([pd_to_npy(ts.iloc[i*100: i*100+100], 'c:/temp/test.npy', 'a', True) for i in range(1,100)])
Wall time: 2.14 s
Package: pygnss
pygnssPython tools used in internal GNSS Rokubun projects. This repository contains the following modules:logger, a module that extends basic Python logginggeodetic, to perform basic geodetic transformation (Cartesian to Geodetic,
Cartesian to Local Tangential Plane, ...)Installationpip install pygnssModulesLoggerExample of how to use the logger module:>>>frompygnssimportlogger>>>logger.set_level("DEBUG")>>>logger.debug("Debug message")2020-05-0518:23:55,688-DEBUG-Debugmessage>>>logger.warning("Warning message")2020-05-0518:24:11,327-WARNING-Warningmessage>>>logger.info("Info message")2020-05-0518:24:26,021-INFO-Infomessage>>>logger.error("Error message")2020-05-0518:24:36,090-ERROR-Errormessage>>>logger.critical("Critical message")2020-05-0518:24:43,562-CRITICAL-Criticalmessage>>>logger.exception("Exception message",ValueError("Exception message")2020-05-0518:25:11,360-CRITICAL-ExceptionmessageValueError:ExceptionmessageTraceback(mostrecentcalllast):File"<stdin>",line1,in<module>File"/../pygnss/pygnss/logger.py",line46,inexceptionraiseexceptionValueError:ExceptionmessageDeployment to PyPiThe project is published automatically using Gitlba-CI on each commit to master to PyPi repositorypygnss
Package: pygnuutils
DescriptionInstallationUsageCLIPythonDescriptionpygnuutilsis a pure python implementation for GNU utils.InstallationInstall the last released version usingpip:python3-mpipinstall--user-UpygnuutilsOr install the latest version from sources:gitclonegit@github.com:matan1008/pygnuutils.gitcdpygnuutils
python3-mpipinstall--user-U-e.UsageCLIYou can run commands by using pygnuutils prefix. For example, in order to list/tmp/fooyou can run:pygnuutilsls-lRh/tmp/fooPythonTo usepygnuutilsyou can write the following:frompygnuutils.lsimportLsls=Ls()ls('/tmp',all_=True)Perhaps the best reason to use this library instead of gnu is the dependency injection ability.For example, in order to print a message each time a symlink is resolved:importosfrompygnuutils.lsimportLs,LsStubclassReadlinkWatch(LsStub):defreadlink(self,path,dir_fd=None):print(f'Resolving{path}...')returnos.readlink(path,dir_fd=dir_fd)ls=Ls(stub=ReadlinkWatch())ls('/tmp',all_=True,long=True)
Package: pygoa-gemini
pygoa_geminiA simple python library for working with theGemini Observatory Archive (GOA) APIsInstallationThe scripts require a standard python distribution that includes
the requests package. This is compatible with both Python 2.7 and Python 3.6+.Then install the library by downloading and unpacking the zip
file or use git,git clone https://github.com/bryanmiller/pygoa_gemini.gitor pippip install pygoa-geminiAuthenticationIn order to download prioprietary data you must provide the GOA authentication
cookie from a web browser.  Updated instructions for how to find the cookie are
given below.First login tohttps://archive.gemini.eduwith your archive account. Associate your account
to programs with proprietary data using the program key provided to the PI. See the GOAhelp pagefor more details.SafariGo to Preferences - Advanced and turn on "Show Develop menu in menu bar".Click "Show Web Inspector" in the Develop menu.Select Cookies in the Storage tab. The cookie you need is called gemini_archive_session.FirefoxSelect Tools->Web Developer->Storage Inspector.Click on "Cookies" and select "https://archive.gemini.edu".
The cookie you need is called gemini_archive_session.ChromeSelect View->Developer->Developer Tools.Click on "Cookies" and select "https://archive.gemini.edu".
The cookie you need is called gemini_archive_session.Copy the value of the cookie and store it in a hidden file called /.goa_auth.
By default get_goa_authority assumes that this is in the home directory, but the path (keydir)
can be specified.
Package: pygobo
Property Graphs for Open Biological OntologiesProperty Graphs library forOpen Biological and Biomedical Ontologies (OBO)in
Python. This library supports reading OBO formatted ontologies into python
data structures. It also supports generation of cypher statements to load
the ontology into a property graph database likeRedisGraph.InstallingYou can install the package via:pipinstallpygoboUsing the command-line interfaceThe module can be invoked directly and provides a set of basic commands that
allow parsing, inspection, cypher statement generation, and loading ontologies.The invocation is:python-mpygobo{operation}{file...}?whereoperationis one of:parse- parse the ontology syntaxcypher- generate cypher create/merge statementsload- load the ontology into a property graph databasestructure- output the general structure of the ontologyThe operations can be scoped via the--scopeoption that takes the values:all- all the componentsontology- only the top-level ontology metadataterm- only the ontology termsxref- only the cross referencestypedef- only the type definitions.The scope option can be used multiple times to display different items.If the file is omitted, the command will read from stdin. Otherwise, each
file specified will be read and operated on in the order they are specified.Loading ontology property graphsThe module currently supports loading ontologies directly intoRedisGraph.The following options can be specified for connecting to the database:--host {name}|{ip}- the host of the database, defaults to 0.0.0.0--port {port}- the port, defaults to 6379--password {password}- the database password, default is no password--graph {key}- the graph key, defaults to "obo"Adding the--show-queryoption will allow you to see the Cypher statements as
they are executed.The--scopeoption will limit the loading to a specific aspect of the
ontology but the order is presumed to be: ontology, term, xref, typedef. If you
violate this ordering, the cypher statements may fail.Formats SupportedThe library only currently supprts the OBO formatted ontologies. That is, it can't currently load the OWL/XML format.You can convert OWL/XML formatted ontologies into OBO format using therobot tool.APIOBOParserAn ontology can be easily loaded from a stream source:frompygoboimportOBOParserparser=OBOParser()withopen('ontology.obo','r')asinput:ontology=parser.parse(input)OntologyAn ontology is a simple class with the following fields:metadata- a dictionary of ontology metadataterms- a dictionary of ontology termstypedefs- a dictionary of ontology type definitionsSome property values are structured dictionaries, some are tuples, and some
are simple values.Generating CypherOnce an ontology is loaded, thequery_generatefunction can be used
to generate cypher load statements. The usage is:forqueryinquery_generate(ontology,scope=['ontology']):print(query)print(';')Thescopekeyword argument is a list of scope values. The values are the
same as the command-line interface (see above).Property graph structureThe graph is is documented in the schema (view,source).
Package: pygochook
PyGoChookA simple Python wrapper to send message to Google Chats.Explore the docs »View Demo·Report Bug·Request FeatureTable of ContentsAbout The ProjectGetting StartedRequirementsInstallationUsageRoadmapContributingLicenseContactAcknowledgementsAbout The ProjectPythonGoogleChat Webhookis a simple Python wrapper to send messages toGoogle Chatvia theirIncoming Webhooks(https://developers.google.com/hangouts/chat/how-tos/webhooks).
As for now Google Chat is only available forG Suite Customers.Getting StartedRequirementsThe package depends on the following packages:aiohttpInstallationInstall the package via pippipinstallpygochookUsageSend a message to a Google Chat...>>>importpygochook>>>message="This is awesome!">>>gchat_webhook_url="https://chat.googleapis.com/...">>>gchat_msg_sender=pygochook.MsgSender(message,gchat_webhook_url)>>>gchat_msg_sender.send()[{...}]     # response message from google chatOr send a message to multiple Google Chats...>>>importpygochook>>>message="This is awesome! I can send even to multiple chats!">>>gchat_webhook_urls=["https://chat.googleapis.com/...","https://chat.googleapis.com/..."]>>>gchat_msg_sender=pygochook.MsgSender(message,gchat_webhook_urls)>>>gchat_msg_sender.send()[{...}, {...}]     # response message from google chatWith the use ofaiohttpthe requests will be performed asynchronously. Hence, it does not matter if you send the message to one or multiple Google Chats with respect to response time. An example:>>>importpygochook>>>@timer...defto_one_chat(msg,url):...gchat_sender=pygochook.MsgSender(msg,url)...returngchat_sender.send()...>>>@timer...defto_multi_chats(msg,urls):...gchat_sender=pygochook.MsgSender(msg,urls)...returngchat_sender.send()...>>>message="Time does not even matter!">>>url="https://chat.googleapis.com/...">>>urls=["https://chat.googleapis.com/...",...,"https://chat.googleapis.com/..."]# 10 Chat API-URLs>>>>>>to_one_chat(message,url)# send to one chatTotal execution time: 454 ms>>>>>>to_multi_chat(message,url)# send to 10 chatsTotal execution time: 2007 msBecause of the asynchronous structure, the total function execution time is as long as the longest response time.RoadmapSee theopen issuesfor a list of proposed features (and known issues).ContributingContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make aregreatly appreciated.Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseDistributed under the MIT License. SeeLICENSEfor more information.ContactProject Link:https://github.com/Lars147/pygochookAcknowledgementsBest README Template
Package: pygocomma
pygocommaControl Gocomma R9 devices with Python 3 using asyncio (single threaded with event loop).
Tu use the library you need the id and key of your device. You can get them using any ofthosemethods.Usageimportsysimportloggingfrompygocomma.r9importR9importasyncioimportbinasciifrompygocommaimport_LOGGERasyncdeftestFake(n):foriinrange(n):_LOGGER.debug("Counter is%d",i)awaitasyncio.sleep(1)asyncdefping_test(*args):a=R9((args[2],DEFAULT_PORT),args[3],args[4])rv=awaita.ping()ifrv:_LOGGER.info("Ping OK%s",binascii.hexlify(rv))else:_LOGGER.warning("Ping failed")awaita.destroy_connection()asyncdefask_last_test(*args):a=R9((args[2],DEFAULT_PORT),args[3],args[4])rv=awaita.ask_last()ifrv:_LOGGER.info("Ask last OK%s",rv)else:_LOGGER.warning("Ask last failed")awaita.destroy_connection()asyncdefdiscovery_test(*args):rv=awaitR9.discovery(int(args[2]))ifrv:_LOGGER.info("Discovery OK%s",rv)else:_LOGGER.warning("Discovery failed")asyncdefemit_test(*args):importremo=re.search('^[a-fA-F0-9]+$',args[5])ifmo:payload=binascii.unhexlify(args[5])else:payload=b64decode(args[5])a=R9((args[2],DEFAULT_PORT),args[3],args[4])rv=awaita.emit_ir(payload)ifrv:_LOGGER.info("Emit OK%s",binascii.hexlify(rv).decode('utf-8'))else:_LOGGER.warning("Emit failed")awaita.destroy_connection()asyncdeflearn_test(*args):a=R9((args[2],DEFAULT_PORT),args[3],args[4])rv=awaita.enter_learning_mode()ifrv:_LOGGER.info("Entered learning mode (%s): please press key",rv)rv=awaita.get_learned_key()ifrv:_LOGGER.info("Obtained%s",binascii.hexlify(rv).decode('utf-8'))else:_LOGGER.warning("No key pressed")rv=awaita.exit_learning_mode()ifrv:_LOGGER.info("Exit OK%s",rv)else:_LOGGER.warning("Exit failed")else:_LOGGER.warning("Enter learning failed")awaita.destroy_connection()_LOGGER.setLevel(logging.DEBUG)handler=logging.StreamHandler(sys.stderr)handler.setLevel(logging.DEBUG)formatter=logging.Formatter('%(asctime)s-%(name)s-%(levelname)s-%(message)s')handler.setFormatter(formatter)_LOGGER.addHandler(handler)loop=asyncio.get_event_loop()try:asyncio.ensure_future(testFake(150))ifsys.argv[1]=="learn":loop.run_until_complete(learn_test(*sys.argv))elifsys.argv[1]=="discovery":loop.run_until_complete(discovery_test(*sys.argv))elifsys.argv[1]=="ping":loop.run_until_complete(ping_test(*sys.argv))elifsys.argv[1]=="asklast":loop.run_until_complete(ask_last_test(*sys.argv))elifsys.argv[1]=="pingst":foriinrange(int(sys.argv[5])):loop.run_until_complete(ping_test(*sys.argv))else:loop.run_until_complete(emit_test(*sys.argv))exceptBaseExceptionasex:_LOGGER.error("Test error%s",str(ex))traceback.print_exc()except:_LOGGER.error("Test error")traceback.print_exc()finally:loop.close()ContributionsPull requests are welcome.DisclaimerNot affiliated with Gocomma in any way.Related Projectshttps://github.com/codetheweb/tuyapinode.jshttps://github.com/sean6541/tuyaapiPython API to the web apihttps://github.com/clach04/python-tuya/Python API to the web api
Package: pygodaddy
PyGoDaddy is a 3rd-party client library, written in Python, for site admins(devs), to make GoDaddy suck less.Currently, Only A-Record manipulation is supportedFeaturesLogin with a USERNAME and a PASSWORDCREATE, READ, UPDATE, DELETE your domain’s DNS Records (A-Record only for now)INSTALLTo install pygodaddy, simply:pipinstallpygodaddyQUICKSTARTfrompygodaddyimportGoDaddyClientclient=GoDaddyClient()ifclient.login(username,password):printclient.find_domains()client.update_dns_record('sub.example.com','1.2.3.4')DOCShttps://pygodaddy.readthedocs.org/Or you can always refer todocstringsandtestsTESTINGCreate a file intests/accounts.pyPut settings in this file:accounts = [
    {
        'username': 'USERNAME',
        'password': 'PASSWORD',
        'test_domain': 'DOMAIN.NAME',
    },
]runnosetests testsin root directory0.2.0 (2015-03-11)Added logging messages to add, delete, edit, save, and update methods0.1.9 (2015-03-11)Fix _split_hostname() method (thanks to @artoleus and @sjpengelly)0.1.8 (2015-02-28)Fix “.co.uk” type of domain (thanks to @sjpengelly)0.1.7 (2015-02-02)Fix CSRF (thanks to @DanChianucci)0.1.1-0.1.6 (2013-07-12)Fix a lot pypi stuff0.1.0 (2013-07-12)Birth!0.0.1 (2011-07-12)FrustrationConception
Package: pygode
pygodeConvert gibberish caused by Thai users forgetting to change their keyboard layout. For Python this time.Installationviapip$pipinstallgode.pyDocumentationseehereContributionsContributions are more than welcome! Please see below for contribution types.Issue reportsIssue trackers are available at ourGitHub Issues.Pull requestsWe also accept PRs as a contribution. Please note thatYour PRs should either have significant improvements or a bug fix.Your PRs should be well-documented. Describe what you did and what benefits it provides.LicenseMIT License