Saravanan666/pypi-org huggingface dataset:
Package: pyswyft
# PySwyftPySwyft is a Python Wrapper for the [Swyftx](https://swyftx.com/) API## InstallationUse the package manager [pip](https://pip.pypa.io/en/stable/) to install PySwyft.`bash pip install pyswyft `## Contributing
Pull 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.## About this software
The PySwyft software is a personal project. I have no prior or existing relationship with Swyftx.If you have any questions regarding this software, please take a look at the documentation first:Swyftx developer docs :https://docs.swyftx.com.au/Github:https://github.com/MrTeale/PySwyftcheck the open and closed issues
If you still have questions/issues you can open an issue on Gitub:https://github.com/MrTeale/PySwyft
Package: pysxgeo
Descriptionpysxgeo is an API that provides access to Sypex Geo (2.2) databases (country and city).
The databases provides an information about geolocation by ip-address.
For information about databases please visitsypexgeo.net.RequirementsPython 3.xSypex Geo City (or Country)databaseInstallation$pipinstallpysxgeoUsageSome examples:>>>frompysxgeoimportsxgeo>>>>>>ip='77.236.97.247'>>>db='/path/to/db'# City or Country>>># AVAILABLE MODES: SXGEO_FILE, SXGEO_MEMORY, SXGEO_BATCH>>>info=sxgeo.SxGeo(db_file=db,mode=sxgeo.SXGEO_BATCH)>>>info.get_city(ip,full=True){'country': {'id': 56, 'lon': 10.5, 'lat': 51.5,
             'name_en': 'Germany', 'iso': 'DE', 'name_ru': 'Германия'},
 'region': {'id': 2861876, 'iso': 'DE-NW',
            'name_en': 'Land Nordrhein-Westfalen',
            'name_ru': 'Северный Рейн-Вестфалия'},
 'city': {'id': 2831105, 'lon': 6.36667, 'name_ru': 'Sonsbeck',
          'name_en': 'Sonsbeck', 'lat': 51.61667}}>>>info.get_country(ip)'DE'>>>info.get_country_id(ip)56>>># Quick usage. The answer depends of your database choice.>>>info.get(ip){'city': {'name_en': 'Sonsbeck', 'lon': 6.36667,
      'name_ru': 'Sonsbeck', 'id': 2831105, 'lat': 51.61667},
 'country': {'iso': 'DE', 'id': 56}},>>># Get coordinates tuple(latitude, longitude)>>>info.get_coords()# For the last ip(51.61667, 6.36667)>>>info.get_coords(ip)# For the new ip(51.61667, 6.36667)>>># Get db info:>>>info.about()NotesProcessing of the DB with charset ‘utf-8’ is faster than processing DB with charset ‘cp1251’.
Package: pysyd
Automated Measurements of Global Asteroseismic ParametersDocumentationThe documentation forpySYDcan be foundhereAttributionIf you make use ofpySYDin your work, please citeChontos et al. (2021):@ARTICLE{2021arXiv210800582C,
       author = {{Chontos}, Ashley and {Huber}, Daniel and {Sayeed}, Maryum and {Yamsiri}, Pavadol},
        title = "{$\texttt{pySYD}$: Automated measurements of global asteroseismic parameters}",
      journal = {arXiv e-prints},
     keywords = {Astrophysics - Solar and Stellar Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
         year = 2021,
        month = aug,
          eid = {arXiv:2108.00582},
        pages = {arXiv:2108.00582},
archivePrefix = {arXiv},
       eprint = {2108.00582},
 primaryClass = {astro-ph.SR}, 
       adsurl = {https://ui.adsabs.harvard.edu/abs/2021arXiv210800582C},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}License© 2019-2022 Ashley Chontos and contributors.pySYDis free software made available under theMIT license.ContributionOurlistof contributors continues to grow!If you'd like to be a part of that, please seeour guidefor contributing.
Package: pysyge
http://github.com/idlesign/pysygeWhat’s thatpysyge is an API to access data from Sypex Geo IP database files from your Python code.For more information about Sypex Geo databases and their features please visithttp://sypexgeo.net.Direct DB link that might became broken over time:Sypex Geo City DB -http://sypexgeo.net/files/SxGeoCity_utf8.zipRequirementsPython 3.6+AttentionThis version of pysyge works withSypex Geo DB version 2.2 or above.The structure of a dictionary returned by GeoLocator.get_location() was preserved in a backward compatible manner
as much as possible, yet it’s advised to update your code to use data frominfosub dictionary.This version of pysyge works withUTF-8Sypex Geo Databases. Texts returned by pysyge areUTF-8.QuickstartDownload Geo IP database file fromhttp://sypexgeo.net/(example below usesSxGeoCityMax.datfile).Application sample# Import all we need from pysyge module.frompysygeimportGeoLocator,MODE_BATCH,MODE_MEMORY# Create GeoLocator object to access API# from 'SxGeoCityMax.dat' using fast memory mode.geodata=GeoLocator('SxGeoCityMax.dat',MODE_BATCH|MODE_MEMORY)# Let's get some meta information.print('DB version%s(%s)'%(geodata.get_db_version(),geodata.get_db_date()))# Request geo information for 77.88.21.3 IP address.# Getting detailed information, including region info.location=geodata.get_location('77.88.21.3',detailed=True)# Print out some lyrics.# Most interesting data is under `info` in `city`, `country` and `region` dictionariesprint('%s(%s) calling. All the circuits are busy.'%(location['info']['city']['name_en'],location['info']['country']['iso']))
Package: pysyllables
pysyllablesAn in-memory syllable count dictionary for North American English derived from
the CMU Pronouncing Dictionary.>>> from pysyllables import get_syllable_count
>>> get_syllable_count("fabulous")
3
>>> get_syllable_count("word-that-doesn't-exist")
NoneWhere do these syllable counts come from?From theCMU Pronouncing Dictionary,
an open-source machine-readable pronunciation dictionary for North American English
that contains over 134,000 words and their pronunciations.By counting the number of lexical stress markers in each word's pronunciation, we can
compute the # of syllables in each word. This library ships with a file that maps each
word to a syllable count inpysyllables/syllable-counts.txtHow does one generatepysyllables/syllable-counts.txt?scripts/download_syllable_counts.shdownloads
the CMU Pronouncing Dictionary, computes each word's syllable count, and emitspysyllables/syllable-counts.txt.Should there be a new version of the CMU Pronouncing Dictionary, update the source inscripts/download_syllable_counts.sh.ContributingQuestions & contributions welcome -- please open an issue or, even better, a PR!
Package: pysymbolcheck
PurposeThis tool does check compiled elf-files (and all dependencies) against given rules.
Objectives arecheck for discouraged functions (e.g. strcpy)check for combinations of symbols (e.g. mutex and pthreads)Usageusage:pysymbolcheck[-h][--libpathLIBPATH]rulesfile

Evalsymbolsofabinaryagainstgivenrules

positionalarguments:rulesPathtoarulefilefileFiletoparse

optionalarguments:-h,--helpshowthishelpmessageandexit--libpathLIBPATH":"separatedpathtolookuplibrariesRule file formata rule file consists of a json-array, like this[]within thisnelement of the following can be added{"severity":"error","id":"A_Unique_ID","msg":"some message","rule","<rule>"}forseverityit is advised to use onlyinfo,warningorerrorRule definitionA rule can consist of any logical combined operation such as((A && B) || (C && D )) && !Eto get the needed information following keywords are implementedkeywordvariablespurposeexampleAVAILABLE()symbol-namecheck if a symbol is defined in the binary or any referenced libAVAILABLE(strncpy)USED()symbol-namecheck if a symbol is used by some binary or libUSED(strncpy)SIZE()symbol-nameget the size in bytes of a symbolSIZE(strncpy)TYPE()symbol-nameget the type in bytes of a symbolTYPE(strncpy)&&n.a.logical andA && B||n.a.logical orA || B!n.a.not operator!A
Package: pysymbolic
symbolicsymbolicis a C++/Python library for parsing and manipulatingPlanning Domain
Definition Language (PDDL)symbols for AI planning. This library is built uponVAL, a C++ library for validating PDDL
specifications.See the documentation forsymbolichere.InstallationThe Python library can be installed viapip:pip install pysymbolicTo compile the C++ library, follow the instructions below.This library is written in C++ with Python bindings automatically generated withpybind11. It has been tested on
Ubuntu 18.04, Ubuntu 20.04, and macOS 10.15 Catalina.Compilation requirements:cmake >= 3.11C++17 support (gcc >= 7,clang >= 7).SeeUpdating CMakefor details on how to install the latestcmake. Ubuntu 20.04 comes with a sufficient version ofcmakeout of the box.C++ onlyThe C++ portion ofsymbolicis header-only, but to addsymbolicas acmakedependency, you can run the following:mkdirbuild
cmake-BbuildPython onlyUsepipto installsymbolicin your virtual environment.pipinstall.You can now import thesymbolicpackage in Python.importsymbolicC++ and PythonAn in-placepipinstall will run the appropriate CMake command to buildsymboliclocally in the./buildfolder. This will give you access to thecmakeconfiguration files for C++ as well as thesymbolicpackage in
Python.pipinstall-e.Updating CMakeUbuntu 18.04The simplest way to install the latest version ofcmakeis throughpip:pipinstallcmakeYou can also install it throughapt:sudoapt-getupdate&&sudoapt-getinstall-yapt-transport-httpsca-certificatesgnupgwget
wget-O-https://apt.kitware.com/keys/kitware-archive-latest.asc2>/dev/null|gpg--dearmor-|sudotee/etc/apt/trusted.gpg.d/kitware.gpg>/dev/null
sudoapt-add-repository-y'deb https://apt.kitware.com/ubuntu/ bionic main'sudoapt-getupdate&&sudoapt-getinstall-ycmakekitware-archive-keyring
sudorm/etc/apt/trusted.gpg.d/kitware.gpgmacOSInstallcmakethrough Homebrew:brewinstallcmakeOr throughpip:pip3installcmake
Package: pysymbolscanner
installpipinstallpysymbolscannerpysymbolscannerStock symbol scanner forpytickersymbols.
The tool scans several wikipedia pages to create an update via PR.basic usageStarts symbol scanner without cache:pysymbolscanner--inputstocks.yaml--outputstocks2.yamlStarts symbol scanner with cache (skips time-consuming wiki scans if they have already been done):pysymbolscanner--cache--inputstocks.yaml--outputstocks2.yamlinstall pycurl on macosWhen you got the error messagesrc/pycurl.h: fatal error: 'openssl/ssl.h' file not foundyou can try:pipuninstallpycurlexportPATH="/usr/local/opt/openssl@1.1/bin:$PATH"exportLDFLAGS="-L/usr/local/opt/openssl@1.1/lib"exportCPPFLAGS="-I/usr/local/opt/openssl@1.1/include"exportPKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"pipinstall--compile--install-option="--with-openssl"pycurl
Package: pysymlog
pysymlog -- Symmetric (signed) logarithm scale for your python plotsversion 1.0.1API documentation:https://pysymlog.readthedocs.ioExamples:https://github.com/pjcigan/pysymlog/examples/tutorial_mpl.ipynbThis package provides some utilities for binning, normalizing colors, wrangling tick marks, and more, in symmetric logarithm space.  That is, for numbers spanning positiveandnegative values, working in log scale with a transition through zero, down to some threshold.  Utilities are given for calculating arrays and histograms, plotting in matplotlib, and plotting in plotly.  This can be quite useful for representing data that span many scales like standard log-space, but that include values of zero (that might be returned by physical measurement) or even negative values (for example offsets from some reference, or things like temperatures).It should be noted that of course matplotlib now has the 'symlog' scale (with linear values near zero, below some threshold) as well as asinh scale (also with smooth transition through zero), providing quite similar matplotlib plotting functionality for setting axis scales and colormap normalization.  Beyond simply providing one more alternative, this package provides convenient functions for creating 1D and 2D histograms and symmetric log bins, generating logspace-like arrays through zero and managing matplotlib major and minor ticks in symlog space, as well as bringing symmetric log scaling functionality to plotly.Sharing/Customization: Please, play around!  (MIT License)If you find this useful for your work, giving this package a nod in your acknowledgments would be greatly appreciated.Dependenciesnumpymatplotlib (optional)plotly (optional)Tested in python 3.7, 3.10InstallationInstall with pippip install pysymlogUsageExample basic usage, without importing any plot packages:importpysymlogaspsl## Making a histogram in symmetric log spacecounts,bin_edges=psl.symlogbin_histogram(data,Nbins=50,shift=1,base=10)## Making a 2D histogram in symmetric log spacecounts,bins_x,bins_y=psl.symlogbin_histogram2d(xdata,ydata,50,limits=['auto','auto'],shift=1,base=10)Example basic usage with matplotlib:importpysymlog## Loading matplotlib utilities and registering 'symmetriclog' scalepysymlog.register_mpl()## Making a plot in symmetriclog scalefrommatplotlibimportpyplotaspltax1=plt.subplot(111)plt.plot(xdata,ydata);plt.yscale(SymmetricLogarithmScale(ax1,shift=0.01))# orplt.yscale('symmetriclog',shift=0.01)plt.show()Example basic usage with plotly:importpysymlog## Loading the plotly utilitiespysymlog.register_plotly()## Making a scatter plot with plotly.graph_objects, log scale on y axisfig=go.Figure()psl.go_scatter_symlog(fig,xdata,ydata,xy='y')fig.show()## Making a line plot with plotly.express, log scale on y axisfig=psl.px_line_symlog(xdata,ydata,xy='y')fig.show()API documentation can be found athttps://pysymlog.readthedocs.ioSee theexamples jupyter notebookfor much more detail and example usage.Example gallery:
Package: pysympla
Instalaçãopip install pysymplaComo UsarfrompysymplaimportSympla# Autenticaçãosympla=Sympla('username','password')# Retorna evento especifícoevent=sympla.get_event('ID')print(event.title,event.confirmed_participants,event.pending_participants)# Retorna generator de eventosevents=sympla.get_events()foreventinevents:print(event.title,event.confirmed_participants,event.pending_participants)ContribuindoContribuições são bem-vindas, sinta-se a vontade para abrir uma Issue ou Pull Request
Package: pysynapse
PySynapsePython Synapse (Matrix) server admin API module.NOTE:This is my first time writing a Python module, its probably not perfect.RequirementsPython3 (written on 3.11)requestsvalidatorsUsage ExamplesCreate a connection from a config filefromconfigparserimportConfigParserfromos.pathimportabspath,dirname,jointry:frompysynapseimportHomeserverexceptImportError:print("pysynapse not installed, install with:")print("python3 -m pip install pysynapse")exit(1)config=ConfigParser()config_file=join(dirname(abspath(__file__)),"config.ini")iflen(config.read(config_file))!=1:print("Failed to load config.ini")exit(1)homeserver=Homeserver(config.get("homeserver","access_token"),config.get("homeserver","host",fallback="localhost"),config.getint("homeserver","port",fallback=8008),config.getboolean("homeserver","secure",fallback=False),config.getboolean("homeserver","verify",fallback=None),config.get("homeserver","notices_user",fallback=None),)print(f"Connected to{homeserver.base_url}(Synapse{homeserver.server_version})")Print summary of event reportsprint("| ID   | Reported            | Claimant                       | Defendant                      | Room                           |")print("|------|---------------------|--------------------------------|--------------------------------|--------------------------------|")forevent_reportinhomeserver.event_reports:print("|{:4.4}|{:19.19}|{:30.30}|{:30.30}|{:30.30}|".format(str(event_report.id),str(event_report.received),str(event_report.user),str(event_report.sender),str(event_report.room),))Purge forgotten roomsforroominhomeserver.rooms:ifroom.forgotten:print("Deleting forgotten room:{}".format(room))room.delete(block_rejoining=False)else:print("Keeping room:{}".format(room))formemberinroom.members:print("-{}".format(member))
Package: pysync
Pysync has both a demonstration implementation of the rsync and related
algorithms in pure Python, and a high speed librsync Python extension. The pure
Python is not fast and is not optimized, however it does work and provides a
simple implementation of the algorithm for reference and experimentation. It
includes a combination of ideas taken from librsync, xdelta, and rsync. The
librsync Python extension is less flexible and harder to understand, but is very
fast.
Package: pySyncAsync
pySyncAsyncA library for template generation of synchronous and asynchronous functions in Python.[Release Notes](#Release Notes)[Version 0.0.1](#Version 0.0.1)[Version 1.0.0](#Version 1.0.0)Installation[Quick start](#Quick start)[User guide](#User guide)Manager[Root manager](#Root manager)[Call object](#Call object)[Template function](#Template function)ExamplesRelease NotesVersion 0.0.1Doesn't work, only library baseVersion 1.0.0Add READMEAdd Manager classAdd root managerAdd tests for import, common manager and root managerInstallationYou can install this library by download from GitHub:gitclonehttps://github.com/OlegYurchik/pySyncAsynccdpySyncAsync
pythonsetup.pyinstallor install from PyPI:pipinstallpySyncAsyncQuick startJust let me show simple code for set your templates and run themimportasyncioimporttimefromrandomimportrandintimportpysyncasyncaspsa@psa.register("sum")defsync_func(a,b):print("SUM SYNC START")time.sleep(1)returna+b@psa.register("sum")asyncdefasync_func(a,b):print("SUM ASYNC START")awaitasyncio.sleep(1)returna+bdefworker():a,b,c,d=(randint(0,10**9)for_inrange(4))call1=psa.Call("sum",a,b)yieldcall1call2=psa.Call("sum",c,d)yieldcall2call3=psa.Call("sum",call1.result,call2.result)yieldcall3returncall3.resultdefmain():generated_worker=psa.generate(worker,psa.SYNC)returngenerated_worker()defa_main():generated_worker=psa.generate(worker,psa.ASYNC)loop=asyncio.get_event_loop()returnloop.run_until_complete(generated_worker())if__name__=="__main__":print("SYNC SESSION")main()print("ASYNC SESSION")a_main()User guideManagerRoot managerCall objectTemplate functionExamples
Package: py-sync-dotenv
Python Sync Dotenv is a Python package for synchronizing.envfiles
across projects using command-line interfaces.Free software: MIT licenseDocumentation:https://py-sync-dotenv.readthedocs.io.Installation$pipinstallpy-sync-dotenvUsageBy default, py-sync-dotenv tries to locate the source .env file with
the name.envfrom the current working directory.$py-sync-dotenvThis behavior can be modified by providing the source .env file path
using the-s,--sourceoption.$py-sync-dotenv-s.env.source#OR$py-sync-dotenv--source.env.sourceAnother option that can be supplied is the-d,--destination-envwhich is used to provide the path to the destination .env file. The below commands synchronizes the source .env file with the specified
destination env file -.env.dev$py-sync-dotenv-d.env.dev#OR$py-sync-dotenv--destination-env.env.dev``Likewise, there is the-ds,--destination-envsoption which is used to provide thedirectorycontaining the destination .env file(s). The below commands synchronizes the source .env file with all the
.env files contained in the specifieddirectory.$py-sync-dotenv-dsdev_envs/#OR$py-sync-dotenv--destination-envsdev_envs/``Futhermore, to all the above options, you can specify the--just-variableflag to indicates to the
engine to synchronize just the variables.$py-sync-dotenv-d.env.dev--just-variables# Source --------------------> destination# SQL_HOST=127.0.0.1 --------> SQL_HOST=# SQL_PORT=5432 --------> SQL_PORT=CommandThewatchcommand can be used to auto synchronize the source .env
file [on file changed/modified] with the specified destination
file(s).$py-sync-dotenv-s.env.source-d.env.devwatchCoupled with thewatchcommand is the--show-logsflag, which is used to show file changes logs as they occur.$py-sync-dotenv-d.env.devwatch--show-logsOptionsTypeOptionDescriptionFILE-s, –sourceSource.envfile to use in populating other .env files [default: .env].FILE-d, –destination-env.envfile for destination stage.DIRECTORY-ds, –destination-envsDirectory path to.envfiles for destination stage.FlagsTypeFlagDescriptionFLAG–just-variablesindicates to the engine to synchronize just the variables.FLAG–show-logsshow file changes logs as they occur. To be used with thewatchcommandFLAG–helpShow this message and exit.CommandsTypeCommandDescriptionCOMMANDwatchindicates to the engine to auto synchronize the source .env file [on file changed/modified] with the specified destination file(s).CreditsThis package was created withCookiecutterand thecookiecutter-pypackageproject template.History0.1.0 (2021-03-19)First release on PyPI.
Package: pysyncgateway
pysyncgatewayBasic object orientated library for communicating withCouchbase Sync Gateway, primarily through the admin
port.ResourcesDocumentation on ReadTheDocsPackage on PyPISource code on GitHubLicensed on Apache License 2.0ChangelogTested against Pythons 2.7 and3.5 (WIP); Sync Gateways 1.5
and 2.1 community editions (walrus mode).
Package: pysynchronizer
AsynchronizerThis repository contains a Python decorator and class that allow you to run asynchronous code from a synchronous context. This can be particularly useful when you need to perform IO-bound tasks such as making HTTP requests, reading from or writing to a database, or interacting with the file system, but you are working within a synchronous context.InstallationYou can install theasynchronizerpackage using pip. Open your terminal and type:pipinstallpysynchronizerUsageHere are some examples of how you can use theasynchronizerpackage.Using the decoratorfromasynchronizerimportasynchronize@asynchronizeasyncdefasync_function():# Your asynchronous code hereasync_function()In the above example,async_functionis an asynchronous function decorated with@async_to_sync. This allows it to be called from a synchronous context.Using the classfromasynchronizerimportAsynchronizerasyncdefasync_function():# Your asynchronous code hereasynchronizer=Asynchronizer()asynchronizer.run(async_function())asynchronizer.run_async(async_function())In this example, an instance ofAsynchronizeris created. Therunorrun_asyncmethod is then used to executeasync_functionfrom a synchronous context.ContributingContributions are welcome! Please read theCONTRIBUTING.mdfor details on how to contribute to this project.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details.
Package: pysyncon
pysynconA python module for the synthetic control method that provides implementations of:Synthetic Control Method (Abadie & Gardeazabal 2003)Robust Synthetic Control Method (Amjad, Shah & Shen 2018)Augmented Synthetic Control Method (Ben-Michael, Feller & Rothstein 2021)Penalized Synthetic Control Method (Abadie & L'Hour 2021)The package also provides methods for performing placebo tests with the above.The implementations of the Synthetic Control method aims to be reconcilable with the R packageSynthand similarly the implementation of the Augmented Synthetic Control method and the R packageaugsynth.InstallationInstall it from PyPI using pip:python-mpipinstallpysynconUsageDocumentation is available ongithub-pages. In the examples folder are notebooks reproducing the weights from:The Economic Costs of Conflict: A Case Study of the Basque Country, Alberto Abadie and Javier Gardeazabal; The American Economic Review Vol. 93, No. 1 (Mar., 2003), pp. 113-132. (notebook here)The worked example 'Prison construction and Black male incarceration' from the last chapter of 'Causal Inference: The Mixtape' by Scott Cunningham. (notebook here)Comparative Politics and the Synthetic Control Method, Alberto Abadie, Alexis Diamond and Jens Hainmueller; American Journal of Political Science Vol. 59, No. 2 (April 2015), pp. 495-510. (notebook here)