Saravanan666/pypi-org huggingface dataset:
Package: pygdal-chm
b’pygdaln======nnVirtualenv and setuptools friendly version of standard GDAL python bindings.nnThis package is for you if you had problems installing GDAL in your virtualenv. You can install GDAL into your virtualenv using this package but you still need to install GDAL library and its header files on your system. On Ubuntu it can be done this way:nn::nn  $ sudo apt-get install libgdal1-devnnVersion of the same package, and GDAL, so that if you have installed GDAL 1.8.1 you need to install the version 1.8.1 of this package:nn::nn  $ gdal-config –versionn  1.8.1nn  $ git clone git@github.com:nextgis/pygdal.gitn  $ cd pygdaln  $ virtualenv –no-site-packages envn  $ env/bin/pip install 1.8.1/nnOr you can install package directly from PyPi:nn::nn  $ virtualenv –no-site-packages envn  $ env/bin/pip install pygdal==”gdal-config –version.*”nnThe trick with range of versions required to support pygdal versioning.nnThe supported versions are1.8.1-3.4.1. Packagenumpyis also listed as a dependency (usingsetup_requiresandinstall_requiresdirectives), so you do not need to install it before installing GDAL.nnIf you installed GDAL using theKyngChaos frameworks, you may need to override the default values returned bygdal-config--prefixin order to install this package. This can be accomplished by setting theGDALHOMEenvironment variable, e.g.nn::nn  $ export GDALHOME=”/Library/Frameworks/GDAL.framework/Versions/Current/unix/”n  $ env/bin/pip install pygdal==”gdal-config –version.*”nnAfter package is installed you can use is same way as standard GDAL bindings:nn::nn  from osgeo import gdalnn’
Package: pygdb2
pygdb2is a python module which allows you to send commands to the
underlyinggdbprocess.  For example, it can be used to automatically and
programmatically add breakpoints and watchpoints.How to installMake sure thatpygdb2is installed:$ pip install pygdb2Then, you need to activate the GDB integration by putting this line inside
your~/.gdbinit:python import pygdb2How to use itYou need to launch your python program insidegdbusing the specialpyruncommand:$ gdb --args python myscript.py
...
(gdb) pyrun
...From the python program, you can usepygdb2.set_trace()to enter thegdbprompt, orpygdb2.execute()to send commands togdb.At the(gdb)prompt, it is possible to invoke thepdbcommand to enter
in the corresponding debugger at the Python level.ExampleFor example, the following code adds a watchpoint for a particular
region of memory created withctypes:import ctypes
import pygdb2

def main():
    buf = ctypes.c_int()
    buf.value = 42
    adr = ctypes.cast(ctypes.pointer(buf), ctypes.c_void_p)
    # enter gdb when we write to this memory
    pygdb2.execute("watch *(int*)%d" % adr.value)

    i = 0
    while i < 5:
        print i
        i += 1
        if i == 2:
            buf.value = 43 # GDB stops hereHere is an example of a gdb/pdb session:$ gdb --args python set_watchpoint.py
...
(gdb) # lines prefixed "pygdb2:" contain the command coming from pygdb2.execute()
(gdb) pyrun
...
pygdb2: watch *(int*)14079984
Hardware watchpoint 1: *(int*)14079984
0
1
Hardware watchpoint 1: *(int*)14079984

Old value = 42
New value = 43
i_set (ptr=0xd6d7f0, value=<value optimized out>, size=4) at /build/buildd/python2.7-2.7.1/Modules/_ctypes/cfield.c:663
663 /build/buildd/python2.7-2.7.1/Modules/_ctypes/cfield.c: No such file or directory.
    in /build/buildd/python2.7-2.7.1/Modules/_ctypes/cfield.c

(gdb) # now we are debugging at the C level
(gdb) # in particular, we are inside function of _ctypes
(gdb) # which sets the value of the buffer

(gdb) # Let's jump to the Python level
(gdb) pdb
Signal received, entering pdb
Traceback:
  File "set_watchpoint.py", line 20, in <module>
    main()
  File "set_watchpoint.py", line 16, in main
    buf.value = 43 # we should enter gdb here
> /home/antocuni/env/src/pygdb2/pygdb2/test/set_watchpoint.py(12)main()
-> while i < 5:
(Pdb++) print i
2
(Pdb++) c
2
3
4

Program exited normally.
(gdb) qUsing signalspygdb2uses bothSIGUSR1andSIGUSR2to communicate withgdb,
so if your program also needs those, you might have conflicts.
Package: pygdc
Python API for accessing Genomic Data CommonsBasic APICasesfrompygdcimportget_casesfrompygdc.filtersimportequals_filterresults=get_cases(filters=equals_filter('project.primary_site','Lung'),fields='demographic.gender,project.disease_type',max_results=50)Cohorts ExampleUsingcohortsimportpygdcpygdc.build_cohort(primary_site='Lung',cohort_cache_dir='cache-dir')
Package: pyGDM2
pyGDM is an open source python toolkit for electro-dynamical simulations, implementing theGreen dyadic method (GDM), a volume discretization technique.
pyGDM is based on simulation codes and theoretical models developed over the past 20 years byChristian Girardat CEMES (see e.g.Ch. Girard 2005 Rep. Prog. Phys. 68 1883), with contributions from G. Colas des Francs, A. Arbouet, R. Marty, C. Majorel, A. Patoux, Y. Brûlé and P.R. Wiecha.
In contrast to most other coupled-dipole codes, pyGDM uses ageneralized propagator, which allows to cost-efficiently treat large monochromatic problems such as angle-of-incidence scans or raster-scan simulations.pyGDM2 is available onpypiandgitlab.Detailed documentation with many examples can be found at thepyGDM2 documentation website. See also thedocumentation paper on arXiv (1802.04071)or a moretheoretical review about the GDM method.RequirementsPythonpython(3.5+,python)numba(to drastically accelerate computations we usenumba)numpy(numpy)scipy>= v0.17.0, lower versions supported with restrictions (scipy)Optional Python packagespytables(v3.x recommended. For hdf5 saving/loading of simulations.pytables)matplotlib(Strongly recommended. For all 2D visualization tools.matplotlib)mayavi(for all 3D visualization.mayavi)mpi4py(for MPI parallelized calculation of spectra.mpi4py)PIL(image processing.PIL)PaGMO / PyGMO(version 2.4+.Requiredfor theEOsubmodule.pagmo)cupy(version 7+, for GPU-based matrix inversion)cupy)(all available viapip)Installation under linuxVia pipInstall from pypi repository via$pipinstallpygdm2Via source codeFrom source, install pyGDM via the setup-script.DO NOT use the setup.py directly for installation, this may install pyGDM as “egg” which leads to problems withnumbacaching.
Please use pip instead. Run the following command in the source directory:$pip3install.--userFor a system wide installation, run as superuser without the–userargument.
To install to a user-defined location, use thetargetoption:$pip3install.--target=/some/specific/locationTo only compile without installation, you can use the setup.py script$python3setup.pybuildsdistInstallation under windowsFor windows, we also recommendAnacondain which pyGDM can be installed easily via pip. From pyGDM2 V1.1 on, installation from source should work straightforward in any other python distribution as well (described above).Via pipWe provide a 64bit windows binary on the pypi repository (tested on Win7 and Win10). Install via$pipinstallpygdm2Installation under Mac OS XTested with the pypi version, installation via pip, with the Anaconda distribution. From pyGDM2 V1.1 on, installation from source should work straightforward in any other python distribution as well (described above).$pipinstallpygdm2AuthorsPython implementationP. R. Wiechacontributions by A. Arbouet, C. Majorel, Y. Brûlé, A. PatouxOriginal fortran code byCh. GirardG. Colas des FrancsA. ArbouetR. MartyP. R. Wiecha
Package: pyGDM2-retard
Retarded 3-layer Greens Tensors for pyGDM2 based on a fortran implementation by Gérard Colas des Francs.pyGDM2 is available onpypiandgitlab.Detailed documentation with many examples is can be found at thepyGDM2 documentation website. See also thedocumentation paper on arXiv (1802.04071)or a moretheoretical review about the GDM method.RequirementsPythonpython(3.5+,python)numpy(numpy)numba(numba)python headers(under linux install the packagepython-devorpython-devel)Fortranfortrancompiler (tested withgfortran.gcc)f2py(comes withnumpy.link)Optional Python packagesscipy>= v0.17.0, lower versions supported with restrictions (Strongly recommended. Used for standard solver LU decomposition and several tools.scipy)Installation under linuxVia pipInstall from pypi repository via$pipinstallpygdm2_retardVia setup scriptThe easiest possibility to compile pyGDM2_retard is via the
setup-script, which uses the extendeddistutilsfromnumpy.To install the pyGDM2_retard module, run in the source directory:$pip3install-U.or$python3setup.pyinstallTo install as a user installation without administrator rights:$pip3install-U.--userTo install to a entirely free, user-defined location, use theprefixoption:$python3setup.pyinstall--prefix=/some/specific/locationTo only compile without installation, use$python3setup.pybuildInstallation under windowsFor windows, we recommendAnacondain which pyGDM can be installed easily via pip. On pip we provide python 3.5+ windows binaries of the pyGDM2_retard moduleVia pipWe provide a 64bit windows binary on the pypi repository (tested on Win7 and Win10). Install via$pipinstallpygdm2_retardCompile using the Anaconda distribution (tested with anaconda3)get the repo (e.g. download from gitlab)install gcc compiler:$condainstallm2w64-toolchainlibpythoncompile fortran parts:$pythonsetupy.pybuildinstall:$pythonsetupy.pyinstallInstallation under Mac OS XShould work under anaconda python as described above for compilation on windows.Authorsfortran implementationG. Colas des Francspython interfaceP. R. Wiecha
Package: pygdmUI
pyGDM-UI is a pyqt based, pure python graphical user interface to pyGDM2. It provides the most common functionalities of pyGDM2 for rapid simulations and testing.Requirementspython(tested with 3.5+,link python)pyGDM2(v1.1+,link pyGDM2)pyqt5(link pyqt5)matplotlib(link matplotlib)mayavi(link mayavi)Installationvia pipInstall from pypi repository via$pipinstallpygdmUIinstall mayavilinux: Works easiest if you use the package manager of your distribution. For example under ubuntu:$sudoaptinstallmayavi2windows: Tested with mayavi of the anaconda python distribution. In the anaconda terminal, install via$condainstallmayaviSee also:https://docs.enthought.com/mayavi/mayavi/installation.htmlfor more detailed instructions on how to install mayavi.Manual installationDownload the latest code fromgitlabor clone the git repository:$gitclonehttps://gitlab.com/wiechapeter/pygdm-ui.git$cdpygdm-ui$pythonsetup.pyinstall--userRun pyGDM-UIIn the terminal:$python3-mpygdmUI.mainAuthorP. R. Wiecha
Package: pyg-downloader
pyg-downloaderUses multiple parallel connections to download a file.TestingpytestInstallpipinstallpyg-downloaderORif you want to show progresspipinstallpyg-downloader[atpbar]UsageCLIpyg-downloaderhttps://download.samplelib.com/mp4/sample-15s.mp4-otest.mp4--max-connections8--progressTo Download to diskfrompyg_download_managerimportDownloadManagermanager=DownloadManager(max_connections=8,show_progress=True)# Download to disk and returns the path to the file# destination_path is the path to the folder for download# filename is the name of the file to save to. Default is the filename from url.path=manager.download("https://download.samplelib.com/mp4/sample-15s.mp4",destination_path='./',filename=None)To Download to memoryfrompyg_download_managerimportDownloadManagermanager=DownloadManager(max_connections=8,show_progress=True)# Download data to an BytesIO object and returns the object# task_name is used to log progress. Default is the filename from url.data=manager.get("https://download.samplelib.com/mp4/sample-15s.mp4",task_name='Test Task')
Package: pygdrive
pygdrivepygdrive is a wrapper library ofgoogle-api-python-clientthat simplifies uploading and downloading files.Project InfoGitHub:https://github.com/vectorspace-ai/pygdriveFeatures of pygdriveSimplifies OAuth2.0 with service_account into just a few lines with flexible settings.WrapsGoogle Drive APIinto
a class which can search, upload and download files and folders.How to installYou can install PyDrive with regular pip command.pipinstallpygdriveYou can install pygdrive from the current development version from GitHub, use:pipinstallgit+https://github.com/vectorspace-ai/pygdrive.gitCreating credentials.json fileDownload client_secrets.json from Google API Console.
Share your Drive account's folder to your service account.
Your service account's addresss looks likeXXX@XXX.iam.gserviceaccount.com.
Then your service account can see the shared folder from your Drive account.Сreating Gdrive objectfrompygdriveimportGdriveSCOPES=['https://www.googleapis.com/auth/drive']CREDENTIALS_FILEPATH='credentials.json'DOWNLOAD_DIR='download_dir/'UPLOAD_DIR='upload_dir/'gdrive_object=Gdrive(CREDENTIALS_FILEPATH,SCOPES,DOWNLOAD_DIR,UPLOAD_DIR)File management made easyUpload file to certain folder:Make sure that folder exists and filename appears in UPLOAD_DIRfolder_id,_=gdrive_object.find_folder('coingecko')gdrive_object.upload_file(folder_id,'filename.extension')You could specify your local upload path if it differs from UPLOAD_DIR:folder_id,_=gdrive_object.find_folder('coingecko')gdrive_object.upload_file(folder_id,'filename.extension','upload_storage/')Create folder:parent_id='PARENT ID'folder_id=gdrive_object.create_folder(parent_id,'folder_name')Make sure that DOWNLOAD_DIR exists and filename.extension in google drive folder.file_id,file_name=gdrive_object.find_file('filename.extension')gdrive_object.download_file(file_id,file_name)You could specify your local download path if it differs from DOWNLOAD_DIR:file_id,file_name=gdrive_object.find_file('filename.extension')gdrive_object.download_file(file_id,file_name,'some_updated_local_path/')After uploading/downloading files you should expect uploaded/downloaded file.
Package: pygdrive3
GDrive PythonContributeIf you found any missing feature please create an issue on that github repo or make your pull request.Installing$pipinstallpygdrive3Usagefrompygdrive3importservicedrive_service=service.DriveService('./client_secret.json')drive_service.auth()folder=drive_service.create_folder('Xesque')file=drive_service.upload_file('Arquivo Teste','./files/test.pdf',folder)link=drive_service.anyone_permission(file)folders=drive_service.list_folders_by_name('Xesque')files=drive_service.list_files_by_name('Arquivo Teste')files_from_folder=drive_service.list_files_from_folder_id(folder)byMatheus AlmeidaUse Google Drive API v3 with a python interfaceMIT License
Package: pygdrive3fixed
GDrive PythonInstalling$pipinstallpygdrive3fixedUsagefrompygdrive3fixedimportservicedrive_service=service.DriveService('./client_secret.json')drive_service.auth()folder=drive_service.create_folder('Xesque')file=drive_service.upload_file('Arquivo Teste','./files/test.pdf',folder)link=drive_service.anyone_permission(file)folders=drive_service.list_folders_by_name('Xesque')files=drive_service.list_files_by_name('Arquivo Teste')files_from_folder=drive_service.list_files_from_folder_id(folder)byMatheus AlmeidaUse Google Drive API v3 with a python interfaceMIT License
Package: pygdtf
python-gdtfPython library forGeneral Device Type FormatGDTF specification as perhttps://gdtf.eu/gdtf/prologue/introduction/See source code for documentation. Naming conventions, in general, are
identical to that on the GDTF, CamelCase is replaced with
underscore_delimiters.CreditsOriginallycreatedbyJack
Page. Forked toOpen-Stage, used for example byBlenderDMX.Source codePyPi pageInstallationpipinstallpygdtfTo install latest version from this git repository, run pip:python-mpipinstallhttps://codeload.github.com/open-stage/python-gdtf/zip/refs/heads/masterUsage# importimportpygdtf# parse a GDTF filegdtf_fixture=pygdtf.FixtureType("BlenderDMX@LED_PAR_64_RGBW@v0.3.gdtf")# get info about DMX Modes:pygdtf.utils.get_dmx_modes_info(gdtf_fixture)# [{'mode_id': 0,#  'mode_name': 'Default',#  'mode_dmx_channel_count': 5,#  'mode_virtual_channel_count': 0}]# get list of DMX channels with geometries, channels functionspygdtf.utils.get_dmx_channels(gdtf_fixture,"Default")# [[{'dmx': 1,#   'id': 'Dimmer',#   'default': 0,#   'geometry': 'Beam',#   'break': 1,#   'channel_functions': [<pygdtf.ChannelFunction at 0x7f122435c8b0>]},#  {'dmx': 2,#   'id': 'ColorAdd_R',#   'default': 255,#   'geometry': 'Beam',#   'break': 1,#   'channel_functions': [<pygdtf.ChannelFunction at 0x7f122435e860>]},#  {'dmx': 3,#   'id': 'ColorAdd_G',#   'default': 255,#   'geometry': 'Beam',#   'break': 1,#   'channel_functions': [<pygdtf.ChannelFunction at 0x7f122435f0d0>]},#  {'dmx': 4,#   'id': 'ColorAdd_B',#   'default': 255,#   'geometry': 'Beam',#   'break': 1,#   'channel_functions': [<pygdtf.ChannelFunction at 0x7f1224e56c20>]},#  {'dmx': 5,#   'id': 'ColorAdd_W',#   'default': 0,#   'geometry': 'Beam',#   'break': 1,#   'channel_functions': [<pygdtf.ChannelFunction at 0x7f122435fdf0>]}]]SeeBlenderDMXandtestsfor
reference implementation.Usage principlesfor list of channels, usepygdtf.utils.get_dmx_channelsas per example
above, do not presume that plain layout of DMX Channels in a DMX Mode is
defining the DMX footprint of the device. Geometry references are
(frequently) used to re-use parts of the device. This means that a channel(s)
defined once can be multiplied, over several times duplicated geometry
(tree).do not use geometry names for anything related to function of the geometry
(yoke, pan, tilt, head), use attached GDTF attributes ("Pan", "Tilt")only Beam, Camera and Wiring geometry types are currently used special types of
geometry. Other types (Axis...) are not really relevant as even Normal
geometry can have for example "Pan" GDTF attribute attached, to indicate
movement.StatusGDTF 1.1 with some portions of GDTF 1.2 being includedDevelopmentPRs appreciated.TypingAt this point, the--no-strict-optionalis needed for mypy tests to pass:mypypygdtf/*py--pretty--no-strict-optionalFormatto format, useblack)Testingto test, run:pytestto test typing with mypy run pytest:pytest--mypy-mmypypygdtf/*py
Package: pygeclip
PygeclipA simple Python Package for seamless integeration with Pageclip APIDescriptionPageclip provides seamless integeration for static html forms. 
The data is easily collected and managed on the Pageclip server.
They also provide a REST API for retrieval of the data in JSON 
and CSV format.The Problem?They don't have a proper documentation for using the API with Python.
I faced a lot of issues in beginning and finally got it to work. So I
made a simple package which you can use to retrieve the data from their API easily.Usage1. Make an instance of the class pgconn()item = pgconn("url", "api_key")This takes two parameters,The URLYour api keyYou can refer to PageClip documentation for both (it's easily undestandable, they have great documentation!)Call the data() functionitem.data()This returns the data from the api injsonformat and you can use it do do your magic!NoteThis is an initial commit. I will be adding all features in this package soon!1:Putting the data to the form through api2:Retrieving and processing the data in CSV format
Package: pygedcom
pygedcomPython module to parse GEDCOM 5.5.1 files and generate output files in a more human readable format.Full documentation is available athttps://topetit.github.io/pygedcom/docs/.InstallationYou can install the module with pip:pipinstallpygedcomGetting startedFirst, you need to import thepygedcommodule.importpygedcomTo get started with theparsermodule, you'll need to initialize aGedcomParserobject:parser=pygedcom.GedcomParser(path="path/to/your/gedcom_file.ged")You can check the parsing statistics to ensure that you've parsed the file correctly:print(parser.get_stats())It's good practice to verify your GEDCOM file before parsing it. You can do this with the following command:check=parser.verify()ifcheck.status=='ok':print("Your GEDCOM file is valid")else:print("Your GEDCOM file is not valid")print(check.errors)Here is the full setup block:importpygedcomparser=pygedcom.GedcomParser(path="path/to/your/gedcom_file.ged")check=parser.verify()ifcheck.status=='ok':print("Your GEDCOM file is valid")else:print("Your GEDCOM file is not valid")print(check.errors)print(parser.get_stats())ParsingThe parser is a simple recursive parser. It creates a series ofGedcomElementobjects.# Initialize the parserdata=parser.parse()Now thedataobject contains the parsed data. This is a dictionary with the following fields:head: theGedcomHeadobject.submitters: a list ofGedcomSubmitterobjects.individuals: a list ofGedcomIndividualobjects.families: a list ofGedcomFamilyobjects.objects: a list ofGedcomObjectobjects.notes: a list ofGedcomNoteobjects.repository: a list ofGedcomRepositoryobjects.source: a list ofGedcomSourceobjects.ExportThe export function is used to export the GedcomParser object to a file. The export function takes two arguments:format(str): The format to export to. Currently only "json" is supported.empty_fields(bool): Whether to include empty fields in the export. Defaults to True.This is a recursive export process. The methodGedcomParser.export()calls theGedcomElement.export()method for each element in the GedcomParser object. All attributes starting with__export_are exported.
This is implemented as such to centralise the export process and to make it easy to add new export formats. Only one declaration is needed in theGedcomElement. If you want an attribute to be exported, you need it to start with__export_.# Make sure you initialized the parser firstparser=GedcomParser("path/to/file.ged")parser.parse()export=parser.export("json",empty_fields=False)# Write the export to a filewithopen("path/to/export.json","w")asf:f.write(export)Theexportvariable in this example contains the exported GedcomParser object as a string. You can write this string to a file or do whatever you want with it.
Package: pyGEEMs
pyGEEMs|PyPi Cheese Shop| |Documentation| |Build Status| |Code Quality| |Test Coverage| |License| |DOI|A Python library for Geotechnical Earthquake Engineering Models.Information on the installation and usage can be found in the documentation_... _documentation:https://pygeems.readthedocs.io/FeaturesDynamic properties:
- Wang andd Stokoe (2018)
- Wangit, Dejong, and Shantz (2012)
Ground motion:
- Rezaeian et al. (2014) damping scaling factor
- Rathje et al. (2005) mean, average, and predominant periods
- Abrahamson et al. (2016) Arias intensity
Slope displacement methods:
- Rathje & Saygili (2008)
- Rathje & Antonakos (2011)
- Watson-Lamprey & Abrahamson (2006)
- Bray & Travasarou (2007) model for crustal earthquakes
- Bray, Travasarou, and Macedo (2018) model for subduction earthquakesWhen authors provide test cases, those test cases are implemented or test cases are found.ContributingIf you want to see a model added, add it and supporting test cases. The code is
formatted using black_ and the docstrings are formatted to thenumpy standard_... _black:https://black.readthedocs.io/en/stable/.. _numpy standard:https://numpydoc.readthedocs.io/en/latest/format.htmlCitationPlease cite this software using the DOI_... _DOI:https://zenodo.org/badge/latestdoi/5086299.. |PyPi Cheese Shop| image::https://img.shields.io/pypi/v/pygeems.svg:target:https://img.shields.io/pypi/v/pygeems.svg.. |Documentation| image::https://readthedocs.org/projects/pygeems/badge/?version=latest:target:https://pygeems.readthedocs.io/?badge=latest.. |Build Status| image::https://travis-ci.org/arkottke/pygeems.svg?branch=master:target:https://travis-ci.org/arkottke/pygeems.. |Code Quality| image::https://api.codacy.com/project/badge/Grade/ca4491ec1be44c239be7730c2b4021a6:target:https://www.codacy.com/manual/arkottke/pygeems.. |Test Coverage| image::https://api.codacy.com/project/badge/Coverage/ca4491ec1be44c239be7730c2b4021a6:target:https://www.codacy.com/manual/arkottke/pygeems.. |License| image::https://img.shields.io/badge/license-MIT-blue.svg.. |DOI| image::https://zenodo.org/badge/154161889.svg:target:https://zenodo.org/badge/latestdoi/154161889Historyv0.2.0 (2020-03-02)Added Bray slope modelsv0.1.0Initial release
Package: py-geez
pygeez LibraryCore library ofThe vckyou, a Pyrogram And Telethon based for your userbot.Installationpip3install-UpygeezSee more working plugins onthe offical repository!Made with ✨ by@vckyou.Licensevckyou is licensed underGNU General Public Licensev3 or later.CreditsDanforPyrogramLonamiforTelethon