Saravanan666/pypi-org huggingface dataset:
Package: pyGeoPressure
A Python package for pore pressure prediction using well log data and seismic velocity data.Cite pyGeoPressure as:Yu, (2018). PyGeoPressure: Geopressure Prediction in Python. Journal of Open Source Software, 3(30), 992,https://doi.org/10.21105/joss.00992BibTex:@article{yu2018pygeopressure,title={{PyGeoPressure}: {Geopressure} {Prediction} in {Python}},author={Yu, Hao},journal={Journal of Open Source Software},volume={3},pages={922}number={30},year = {2018},doi = {10.21105/joss.00992},}FeaturesOverburden (or Lithostatic) Pressure CalculationEaton's method and Parameter OptimizationBowers' method and Parameter OptimizationMultivariate method and Parameter OptimizationGetting StartedInstallationpyGeoPressureis onPyPI:pipinstallpygeopressureExamplePore Pressure Prediction using well log dataimportpygeopressureaspppsurvey=ppp.Survey("CUG")well=survey.wells['CUG1']a,b=ppp.optimize_nct(well.get_log("Velocity"),well.params['horizon']["T16"],well.params['horizon']["T20"])n=ppp.optimize_eaton(well,"Velocity","Overburden_Pressure",a,b)pres_eaton_log=well.eaton(np.array(well.get_log("Velocity").data),n)fig,ax=plt.subplots()ax.invert_yaxis()pres_eaton_log.plot(ax,color='blue')well.get_log("Overburden_Pressure").plot(ax,'g')ax.plot(well.hydrostatic,well.depth,'g',linestyle='--')well.plot_horizons(ax)DocumentationRead the documentaion for detailed explanations, tutorials and references:https://pygeopressure.readthedocs.io/en/latest/ContributeReport BugsIf you find a bug, please report it atGithub Issuesby opening a new issue withbuglabel.Suggest EnhancementsIf you have new ideas or need new features, you can request them by opening a new issue atGithub Issueswithenhancementlabel. We will see if we can work on it together.Submit Pull RequestsIf you would like to help fix known bugs, please submit a PR.
(SeeThe beginner's guide to contributing to a GitHub project, if you are new to Github).Before creating a pull request, please try to make sure the tests pass and use numpy-style docstrings. (Please see the documentation on setting up the development environmenthttps://pygeopressure.readthedocs.io/en/latest/install.html)SupportIf you have any questions, please open an issue atGithub Issueswithquestionlabel. Tell us about your question, we will provide assistance. And maybe we could add it to the documentation.LicenseThe project is licensed under the MIT license, see the fileLICENSEfor details.
Package: pygeoquery
pygeoqueryPerform geospatial queries on a Firestore database with ease.pygeoquery allows you to retrieve documents within a certain radius of a given geographic point. It utilizes geohashes for efficient querying.Featuresquery Firestore collections by geographic proximity.efficiently filter and retrieve documents within a specified radius.flexible and customizable query building.utilizes geohashes for high-performance geospatial queries.supports both synchronous and asynchronous Firestore clients.InstallationYou can install the library using pip:pipinstallpygeoqueryPrerequisitesBefore using this library, ensure that each document in the searched Firestore collection includes a field called"geohash"containing a geohash value generated from the geographical coordinates. This geohash field is essential for the library to perform accurate geospatial queries.To generate geohashes, you can use Python libraries such as:pygeohash: Provides functions for decoding and encoding geohashes.geohashr: Just another Python geohashing library.UsageInitialize Firebasefromfirebase_adminimportinitialize_app,credentialsfromgoogle.cloudimportfirestore# Initialize Firebasecred=credentials.Certificate("path/to/your/serviceAccountKey.json")initialize_app(cred,{"projectId":"your-project-id"})Create Firestore client# Synchronous clientdb=firestore.Client()or# Asynchronous clientdb=firestore.AsyncClient()Define callback functions# Define a GeoPointFromCallbackdefgeopoint_from_callback(data):returndata.get("location")# Replace with your data structure# Define query builder callback function (optional). This function allows you to customize your query.defquery_builder_callback(query):returnquery.where("property","==","value")# Customize your queryCreate a GeoCollectionReference or GeoAsyncCollectionReference# Create a GeoCollectionReferencegeocollection=GeoCollectionReference(db.collection("your_collection"))or# Create a GeoAsyncCollectionReference (asynchronous client only)geocollection=GeoAsyncCollectionReference(db.collection("your_collection"))Fetch documents within a radius of a GeoPoint# Fetch documents within a radius of a GeoPointcenter_point=GeoPoint(latitude,longitude)radius_km=10.0result=geocollection.fetch_within(center_point,radius_km,geopoint_from_callback,query_builder_callback)# Process the retrieved documentsfordocumentinresult:print(document)If you are using the asynchronous client, use theawaitkeyword to wait for the result.result=awaitgeocollection.fetch_within(center_point,radius_km,geopoint_from_callback,query_builder_callback)AcknowledgmentsThis project is inspired by thegeoflutterfire_plusFlutter module byKosuke Saigusa, which provides similar geospatial querying functionality for Firestore databases in the Flutter framework.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.ContributingPlease readCONTRIBUTING.mdfor details on my code of conduct, and the process for submitting pull requests to me.ContactIf you have questions or need assistance, feel free to contact me.Happy querying!
Package: pygeos
PyGEOS is a C/Python library with vectorized geometry functions. The geometry
operations are done in the open-source geometry library GEOS. PyGEOS wraps
these operations in NumPy ufuncs providing a performance improvement when
operating on arrays of geometries.Important note: PyGEOS was merged with Shapely (https://shapely.readthedocs.io)
in December 2021 and will be released as part of Shapely 2.0. The development will take place
at the Shapely repository. Please raise issues or create pull request over there.
PyGEOS itself will receive updates (by backporting from the Shapely repository) until
Shapely 2.0 is actually released.What is a ufunc?A universal function (or ufunc for short) is a function that operates on
n-dimensional arrays in an element-by-element fashion, supporting array
broadcasting. The for-loops that are involved are fully implemented in C
diminishing the overhead of the Python interpreter.MultithreadingPyGEOS functions support multithreading. More specifically, the Global
Interpreter Lock (GIL) is released during function execution. Normally in Python, the
GIL prevents multiple threads from computing at the same time. PyGEOS functions
internally releases this constraint so that the heavy lifting done by GEOS can be
done in parallel, from a single Python process.ExamplesCompare an grid of points with a polygon:>>>geoms=points(*np.indices((4,4)))>>>polygon=box(0,0,2,2)>>>contains(polygon,geoms)array([[False,False,False,False],[False,True,False,False],[False,False,False,False],[False,False,False,False]])Compute the area of all possible intersections of two lists of polygons:>>>frompygeosimportbox,area,intersection>>>polygons_x=box(range(5),0,range(10,15),10)>>>polygons_y=box(0,range(5),10,range(10,15))>>>area(intersection(polygons_x[:,np.newaxis],polygons_y[np.newaxis,:]))array([[100.,90.,80.,70.,60.],[90.,81.,72.,63.,54.],[80.,72.,64.,56.,48.],[70.,63.,56.,49.,42.],[60.,54.,48.,42.,36.]])See the documentation for more:https://pygeos.readthedocs.ioReferencesGEOS:https://libgeos.orgShapely:https://shapely.readthedocs.io/en/latest/Numpy ufuncs:https://docs.scipy.org/doc/numpy/reference/ufuncs.htmlJoris van den Bossche’s blogpost:https://jorisvandenbossche.github.io/blog/2017/09/19/geopandas-cython/Matthew Rocklin’s blogpost:http://matthewrocklin.com/blog/work/2017/09/21/accelerating-geopandas-1Copyright & LicensePyGEOS is licensed under BSD 3-Clause license. Copyright (c) 2019, Casper van der Wel.
GEOS is available under the terms of ​GNU Lesser General Public License (LGPL) 2.1 athttps://libgeos.org.
Package: pygeoshape
PyGeoShape v0.0.43D extension toshapelyandpyprojto make working with geospatial/trajectory data easier in python. If you found PyGeoShape helpful, please consider adding a star to this repository. Thanks!Getting StartedInstallationpipThe easiest way to install PyGeoShape is by using pip:pipinstallpygeoshapesourceTo install the package from source, first clone the repository to a location of your choosing:gitclonehttps://github.com/marcbrittain/PyGeoShape.gitThen navigate to the directory:cdPyGeoShapeThen install using pip (note: requires python 3.6+):pipinstall-e.ExamplesThe core focus of this repository is to make working with 3D geospatial/geographical data easier in python. Therefore, the core element of this repository is the GeoLineString (to start).GeoLineStringsRoadmapThis project is very early on and is something that I am working on in my free time. Getting some of the initial functionality of GeoLineStrings like intersections and coordinate transformations was a first step, but there is a long way to go. Here I list some of the next major items that need to be addressed.GeoLineStringsHeterogeneous intersection types (LineString, Point, etc.)Add function for distance calculationAdd function for GeoLineString splitsOptimize intersection function for efficiencyGeoPointPort GeoLineString functionality to GeoPointAdd additional Geo TypesGeoMultiLineStringGeoMultiPointContributingContributions are always welcome. Please follow standard PEP-8 code format for contributions.
Package: pygeosimplify
Welcome to pyGeoSimplify!Download pyGeoSimplifypipinstallpygeosimplifyQuick Startimportpygeosimplifyaspgsfrompygeosimplify.simplify.layerimportGeoLayerfrompygeosimplify.simplify.detectorimportSimplifiedDetector# Set names of branches that specify coordinate system of cellspgs.set_coordinate_branch("XYZ","isCartesian")# Load geometrygeo=pgs.load_geometry("DetectorCells.root",tree_name='treeName')# Create simplified detectordetector=SimplifiedDetector()# Add dector layers to detectorlayer=GeoLayer(geo,layer_idx)detector.add_layer(layer)# Process detectordetector.process()# Save simplified detector to gdml filedetector.save_to_gdml(cyl_type='processed',output_path='processed.gdml')LICENSEpyGeoSimplify is free of use and open-source. All versions are
published under theMIT License.
Package: pygeostandards
Geography-related lists like ISO country codes,
languages, currencies, scripts, and other
geography related breakdowns like European Union
and Euro Area subdivisions, NUTS 2016 geographic codes.BadgesinfolicensepackageInformationBest effort basis.Loosely based on the excellent pycountry, with
additional information found around the web and
predominantly with the inclusion of continents
in addition to countries.Classes are - where possible - linked.
Objects are loaded from easly readable and modifiable
csv files (use xlsx files and save as csv as needed).Order of columns in the CSV files MUST match order
of column specifications in the individual object definitions.InstallpipinstallpygeostandardsDependenciesNone
Package: pygeostat
IntroductionThis is a Python package for geostatistical modeling. Pygeostat is aimed at preparing spatial data, scripting geostatistical workflows, modeling using tools developed at the Centre for Computational Geostatistics(CCG), and constructing visualizations to study spatial data, and geostatistical models. More information about installing and using pygeostat can be found in thedocumentation.For lessons on geostatiscts visitGeostatistic Lessons.Contact:Refer towww.ccgalberta.com
Package: pyGeoTile
UsageThe package pyGeoTile consist of two main classes, namely Point and
Tile. As already mentioned they allow you to convert various geo
projections.
The full API documentation could be found underhttp://pygeotile.readthedocs.ioPointExample of the class Point.frompygeotile.pointimportPointmeter_x,meter_y,zoom=-9757148.442088600,5138517.444985110,19# meters in Spherical Mercator EPSG:900913point=Point.from_meters(meter_x=meter_x,meter_y=meter_y)print('Pixels: ',point.pixels(zoom=zoom))# Pixels:  (34430592, 49899136)print('Lat/Lon: ',point.latitude_longitude)# Lat/Lon:  (41.84987190947754, -87.64995574951166)TileExample of the class Tile.frompygeotile.tileimportTiletms_x,tms_y,zoom=134494,329369,19tile=Tile.from_tms(tms_x=tms_x,tms_y=tms_y,zoom=19)# Tile Map Service (TMS) X Y and zoomprint('QuadTree: ',tile.quad_tree)# QuadTree:  0302222310303211330NotesThis repository is inspired from:Tiles à la Google Maps,http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/Bing Maps Tile System,https://msdn.microsoft.com/en-us/library/bb259689.aspxShowing pixel and tile coordinates:https://developers.google.com/maps/documentation/javascript/examples/map-coordinates?hl=deMercantile:https://github.com/mapbox/mercantile
Package: pygeovis
pyGEOVisVisualize geo-tiff/json based onfolium. It can be used to visualize geo-data (geotiff/geojson) after ML/DL about RS.USEThe class namedGeovisjust have three functions.UseingaddRasterto add a image with geo-info (like geotiff) to the map and useingaddVectorto add a vector (just support geojson with polygon or multipolygon) to the map. In the end, useingshowto show this interactive map.frompygeovisimportGeovisviser=Geovis()viser.addRaster("data/val.tif",band_list=[1,2,3])viser.addVector("data/val.geojson")viser.show()
Package: pygeppetto
pygeppettoHome of the Geeppetto Python API. The API allows to create a Geppetto Model from Python.InstallationUntil pygeppetto is still in development, it is highly recommended to use a
virtualenv in order to deploy it. Once you have a dedicated virtualenv, you can
simply install pygeppetto:pythonsetup.pyinstallFor further information please visit:https://github.com/openworm/pygeppetto
Package: pygerduty-py3
PygerdutyPython Library for PagerDuty’s v1 REST API.This library is currently evolving and backwards compatibility cannot always be guaranteed at this time.InstallationYou can install withpip install pygerduty.If you want to install from source, thenpython setup.py install.RequirementsPygerduty is tested against >= Python 2.5simplejsonis required on Python2.5DocumentationPygerduty is a thin wrapper around PagerDuty’s APIs. You will need to refer
to the thePagerDuty Documentationfor
all available parameters to pass and all available attributes on responses.The main methods available to resources are list, show, create, update, and
delete. Not all resources have endpoints for all of the above methods. Again,
refer to thePagerDuty Documentationto
see all available endpoints.Top level resources will be accessible via the PagerDuty object and nested
resources available on containers returned from their parent resource.ExamplesInstantiating a client:import pygerduty
pager = pygerduty.PagerDuty("foobar", "SOMEAPIKEY123456")Listing a resource:for schedule in pager.schedules.list():
    print schedule.id, schedule.name

# PX7F8S3 Primary
# PJ48C0S Tertiary
# PCJ94SK SecondaryGetting a resource by ID:schedule = pager.schedules.show("PX7F8S3")Creating a resource:user = next(pager.users.list(query="gary", limit=1))
override = schedule.overrides.create(
    start="2012-12-16", end="2012-12-17", user_id=user.id)Delete a resource:schedule.overrides.delete(override.id)Updating a resource:pagerduty.users.update(user.id, name="Gary Example")Acknowledging a group by incidents:me = next(pager.users.list(query="me@you.com", limit=1))
for incident in pagerduty.incidents.list(status='triggered'):
    incident.acknowledge(requester_id=me.id)
Package: pygerrit2
Pygerrit2 provides a simple interface for clients to interact withGerrit Code Reviewvia the REST API.Copyright and LicenseCopyright 2011 Sony Ericsson Mobile Communications. All rights reserved.Copyright 2012 Sony Mobile Communications. All rights reserved.Copyright 2016 David Pursehouse. All rights reserved.Licensed under The MIT License.  Please refer to theLICENSEfile for full
license details.
Package: pygesture
pygesturePre-built OpenCV-Python/Mediapipe modules that easy to use and understand.For now it only hadHand Track. More features will be add in future.Table of ContentsInstallationHand TrackInstallationpip install pygestureFirst time use might won't work, so try it again.Because it need to generate it own__pycache___.Hand TrackHand tracking technology with the help of Mediapipe.This also detect if itLeft or RightHand.I know there a lot of stuff down there but trust me.Just read it one by one it easy to understand.frompygestureimporthandtrackimportcv2# [int] maxHand: The maximum amount hand that allowed to be track.# [bool] drawLandmark: Draw on landmark and connect them together.# You can also put nothing in there it will also work.# Ex: handtrack.handDetector()# There are more options available, you can check the source code if want to learn more.ht=handtrack.handDetector(maxHand=2,drawLandmark=True)cap=cv2.VideoCapture(0)# This is a config for camera resolution.# But the quality still limit by your camera.cap.set(cv2.CAP_PROP_FRAME_WIDTH,1920)cap.set(cv2.CAP_PROP_FRAME_HEIGHT,1080)whileTrue:success,img=cap.read()# The value will return everything you need.# img: is the image result.# hand: is the value of left or right hand and value of each landmarks on each hand.img,hand=ht.findHands(img)# Print it out to see what going on.# This will return None if no hand detect. Make sure to add a check condition.print(hand)# "Hand Track" you can name it whatever you want. But other options may required.cv2.namedWindow("Hand Track",cv2.WND_PROP_FULLSCREEN)# [Optional] You can use this if you want full screen.cv2.setWindowProperty("Hand Track",cv2.WND_PROP_FULLSCREEN,cv2.WINDOW_FULLSCREEN)# Display output image.cv2.imshow("Hand Track",img)# Wait in milliseconds before capture next frame.cv2.waitKey(1)You can also try the pre-built test.Requiredassets.zipJust Extract it in the same directory as your script.frompygestureimporthandtrack_testHand VectorLandmarks CoordinateEven though there no landmarks number specify.'lms': [
        x: 0.2995750904083252
        y: 0.7221927642822266
        z: -4.386473335671326e-07,

        x: 1.2995750904083252
        y: 4.7221927642822266
        z: -4.626473335671326e-07,

        .....
    ]Each index inside a list is the landmark it self. Start from [0,1,2,...]
Package: pyget
getProvides elisp-stylegetandputfunctions:https://www.gnu.org/software/emacs/manual/html_node/elisp/Symbol-Plists.htmlWARNING: This repo is in development. It was automatically generated withmkpylib. If you're reading this message, it means that I use this repo for my own purposes right now. It might not do anything at all; the default functionality isprint('TODO').If you really want to try it out, feel free. I recommend reading through the code and commit history to see if it does what you need, orask mefor status updates.Stay tuned!Installpython3 -m pip install -U getUsageimportgetprint('TODO')LicenseMITContactA library byShawn Presser. If you found it useful, please considerjoining my patreon!My Twitter DMs are always open; you shouldsend me one! It's the best way to reach me, and I'm always happy to hear from you.Twitter:@theshawwnPatreon:https://www.patreon.com/shawwnHN:sillysaurusxWebsite:shawwn.com
Package: pygethub
pygethubpygethubis a Python package for fetching paginated resources such as commits, users, repositories and organizations from the GitHub API. It provides automatic rate-limit handling and pagination for GitHub resources.FeaturesGet a list of commits for a specific repository.Get a list of branches for a specific repository.List GitHub users and organizations.List repositories for a specific organization or user.Get a list of contributors for a specific repository.Check the rate limit for the authenticated user.Start and resume pagination of global resources.InstallationTo installpygethub, you can use pip:pip install pygethubUsageHere is an example of how you can usepygethub:frompygethubimportlist_commits,GitHubPaginator,list_users# List commits for a specific repositorycommits=list_commits('owner','repo','your-github-token')print(commits)# Use pagination to list userspaginator=GitHubPaginator('your-github-token')# List users from the beginning, include other request parameters as keyword argumentsusers=paginator.get_paginator(list_users)foruserinusers:print(user)# If you want to resume the listing from a certain user ID, use the `since` parameterusers=paginator.get_paginator(list_users,since=500)foruserinusers:print(user)# Similarly, you can use the `since` parameter with list_organizations to resume listing from a certain organization IDDevelopmentTo installpygethub, along with the tools you need to develop and run tests, run the following in your virtual environment:pip install -e .[dev,test]ContributingContributions are welcome! Please read ourContributing Guideon how to contribute topygethub.Licensepygethubis licensed under the terms of the MIT license. See theLICENSEfile for the full license text.
Package: pygetimportables
pygetimportablesPython functions to get top-level importable names from a source tree or an already built wheel.Seehttps://discuss.python.org/t/script-to-get-top-level-packages-from-source-tree/40232?u=astrojuanluInstallationTo install, run(.venv) $ pip install pygetimportablesUsageTo get the top-level importable names directly from a source tree:>>> from pygetimportables import get_top_importables
>>> get_top_importables(".")  # Wait a few seconds, requires working `pip install`
{'pygetimportables'}To get the top-level importable names from an already built wheel:(.venv) $ python -m build
...
(.venv) $ python -q
>>> from pygetimportables import get_top_importables_from_wheel
>>> get_top_importables_from_wheel("dist/pygetimportables-0.1.0+d20231204-py3-none-any.whl")  # Fast
{'pygetimportables'}DevelopmentTo run style checks:(.venv) $ pip install pre-commit
(.venv) $ pre-commit -a
Package: pygetkey
getkeyA Python module to get the pressed keyInstallationFrom PyPIpip3installpygetkeyFrom GitHubpip3installgit+https://github.com/donno2048/getkeyUsageimportgetkeygetkey.get_key()# Wait for a key to be pressed and return itgetkey.get_last_key()# Don't wait for a key to be pressed and return the last pressed key (mainly for "async" loops)