Saravanan666/pypi-org huggingface dataset:
Package: geometryobject
PythonGeometryObject2DIn this practice, i make my own distribution to make some Geometry Object 2DWhich have feature to prints--SquareRectangleRight TriangleEquilateral TriangleInstallation--
Run the following to install:pip install geometryobjectUsage--
import geometyobject2d as obj2d;#To print square objectobj2d.printSquare(5)5 is side length#To print rectangle objectobj2d.printRectangle(3,7)3 is height7 is length#To print right triangle objectobj2d.printRightTriangle(5)5 is height#To print equilateral triangle objectobj2d.printEquilateralTriangle(5)5 is height
Package: geomi
Planar, solid and higher dimensional geometry.LICENSEMIT. SeeLicense File.Installgeomiis on the Python Package Index (PyPI):pip install geomioreasy_install geomiStructuregeomiis implemented in these parts:planar: points, lines, curves, shapes, polygons …solid: 3D geometry including cubes, cones, spheres, Platonic solids …ndim: higher dimensional geometries …utils.algos: algorithms that can applied on geometric entities …utils.plotter: plot geometries for visualization …Dependenciesgeomisupports Python 2.7+ and Python 3.5+ with a common codebase.
It is pure Python and requires no dependencies beyond the standard
library.
Package: geomie3d
geomie3ddocumentation can be found athttps://chenkianwee.github.io/geomie3dInstallationpip install geomie3ddependenciesnumpyscipypyqtgraphpyopenglPyQt6python-dateutilnurbs-pythonearcut-pythonIf you want to manually install the library:Install Python =<3.11 (https://www.python.org/)Create a virtual environment with 'py -m venv geomie3d' this will create a virtual environment in the directory ray of your current directory (https://realpython.com/python-virtual-environments-a-primer/#deactivate-it)Activate the environment geomie3d\Scripts\activate, for linux -> source geomie3d/bin/activateInstall VScodeInstall geomie3dhttps://github.com/chenkianwee/geomie3dInstall 'pip install numpy==1.26.3'Install 'pip install scipy==1.11.4'install 'pip install pyqtgraph==0.13.3'install 'pip install PyOpenGL==3.1.7'install 'pip install PyQt6==6.6.1'install dateutil 'pip install python-dateutil==2.8.2'Opengl issue with visualizing 3d geometries on Ubuntu 22.04if this happen when running geomie3dFailed to create wl_display (No such file or directory)go to viz module and change the followingos.environ['QT_QPA_PLATFORM'] = 'wayland-egl' -> os.environ['QT_QPA_PLATFORM'] = 'egl'If the openGL is giving you issue with the viz function do this to solve the issuego to /etc/gdm3/custom.conf and uncomment WaylandEnable=falsego to /etc/environment and add this line QT_QPA_PLATFORM=xcb to the file
Package: geomlcv
GeoML - Computer Vision library for Satellite ImagesGeoML runs image processing and machine vision algorithms specifically designed for satellite images. It aims to make your life easier with powerful tools and utilities.Present functionalityDownload data from Google Map Tiles API and load into S3Generate datasets of preprocessed images with PCA+HOG, SV+HOG, etc.Development SetupTo get started with contributing or using the Geoml library, follow these steps to set up your development environment:Clone the repository to your local machine:gitclonehttps://github.com/pgzmnk/geoml.gitcdgeomlInstall project dependencies in virtual environment using Poetry:python3-mvenv.venvsource.venv/bin/activate
poetryinstallGetting StartedOnce the development environment is set, you can start using the Geoml library in your projects. The library provides various machine vision algorithms tailored for satellite image analysis. Before diving into the specifics, make sure you have a basic understanding of satellite images and their properties.Environment variables:export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export GOOGLE_API_KEY=
export ROBOFLOW_API_KEY=To use GeoML in your Python script, import it as follows:importgeomlNow you can access the various functions and classes provided by the library to analyze satellite images. For example, to apply a machine learning classifier on an image, you can use the following code snippet:wip...ContributingIf you find a bug, have a feature request, or want to contribute code, please open an issue or PR.Publishpoetry config pypi-token.pypi pypi-token-...
poetry build
poetry publishLicenseThe GeoML library is distributed under the MIT License.
Package: geomodels
Copyright:2019-2020 Antonio Valentinolicense:MITurl:https://github.com/avalentino/geomodelsAboutGeoModels provides tools for the management of Earth models like
geoids, gravity models, and magnetic field models.It also provides some utility function to download and install support
data to that are necessary for Earth models computation.It is basically aCythonwrapper for part of the theGeographicLibC++ library.InstallationThe GeoModels requiresPython>= 3.6.
To use GeoModels depends on the followingPythonpackages:numpytqdm(optional)argcomplete(optional)The requiredPythonpackages are automatically installed installed byPipandsetuptools:$ python3 -m pip install geomodelsPlease refer to thePipuser manual for details about installation
options and to theinstallationsection in the documentation
for details about installation form sources.Model data installationGeoModels uses external data to perform geoid, gravity and magnetic
field computations.If required data are not already available on the system than they can
be downloaded and installed using the command line interface provided
by the GeoModels package:$ python -m geomodels install-data [-d DATADIR] recommendedThe above command installs therecommendedsubset of data (about 20MB)
into the specifiedDATAROOT`folder.
If `DATAROOTis not explicitly specified using the-d(or–datadir)
option then the default system path is used (e.g./usr/local/share/GeographicLib).In any case it is necessary to have write permission on theDATADIRfolder, so to install into the default system path it will be probably
necessary to usesudoor some equivalent method.If data are not installed into the default system folder than it is
necessary to set theGEOGRAPHICLIB_DATAenvironment variable to the
data installation path to allowGeographicLibto find data.
E.g., on systems using bash one can use the following command:export GEOGRAPHICLIB_DATA=/path/to/dataTestingOnce the GeoModels package and necessary data have been installed, it
is possible to run the test suite to be sure that all works correctly.
The recommended way to test GeoModels with usingPyTest:$ env GEOGRAPHICLIB_DATA=/path/to/data \
  python3 -m pytest --pyargs geomodelsUsage example>>> from geomodels import GeoidModel
>>> geoid = GeoidModel()
>>> geoid.description()
'WGS84 EGM96, 5-minute grid'
>>> geoid(lat=40.667, lon=16.6)  # -> geoid height
45.914894760480024LicenseGeoModels is released under the terms of theMIT/X11 License(see LICENSE file).
Package: geomove
geomoveMoves points on earth's surface towards a given bearing by a given distance.Introductory exampleThese points were created by moving a reference point (R) by 10 km in all base directions of a compass rose:Find the plothere.InstallationpipinstallgeomoveUsageMove a(lat, lon)point west by 10 km:fromgeomoveimportmove,Bearing# Define pointpoint=(51.9624,7.6256)# Movemoved_point=move(point,Bearing.WEST,10)Move a point towards 357° by 5 km:fromgeomoveimportmove# Define pointpoint=(51.9624,7.6256)# Movemoved_point=move(point,357,5)
Package: geompreds
geompreds - A Python wrapper for 2D predicates of Jonathan Richard ShewchukMany computational geometry applications use numerical tests known as the
orientation and incircle tests. The orientation test determines whether a point
lies to the left of, to the right of, or on a line or plane defined by other
points. The incircle test determines whether a point lies inside, outside, or
on a circle defined by other points.
[Adaptive Precision Floating-Point Arithmetic and Fast Robust Predicates for Computational Geometry].InstallationDownload the sourceRunpython setup.py install(orpython setup.py develop)Runpython test/test_predicates.pyto run the tests.Usage>>> from geompreds import orient2d, incircle>>> orient2d( (0, 0), (10, 0), (10, 10)) # left turn (positive), looking from above
100.0
>>> orient2d( (0, 0), (10, 0), (20, 0)) # straight (zero)
0.0
>>> orient2d( (0, 0), (10, 0), (10, -10)) # right turn (negative), looking from above
-100.0>>> incircle((0,0), (10,0), (0,10), (0,10)) # on boundary
0.0
>>> incircle((0,0), (10,0), (0,10), (1,1)) # inside, value positive
1800.0
>>> incircle((0,0), (10,0), (0,10), (-100,-100)) # outside, value negative
-2200000.0ChangelogSeeCHANGES.txt.Bug reportsIf you discover any bugs, feel free to create an issue on Bitbucket.Please add as much information as possible to help us fixing the possible bug.
We also encourage you to help even more by forking and sending us a pull
request.The issue tracker liveshere.MaintainersMartijn MeijersLicenseMIT License
Package: geom-props
geom-propsInstallationpip install geom-propsUsagefromshapelyimportPolygonfromgeom_propsimportarea,perimeterpolygon=Polygon([[-51.73378826916447,-19.82529005404656],[-51.733842668569835,-19.821453938187894],[-51.73789902019809,-19.821505344064033],[-51.7378447179625,-19.82534147068279],[-51.73378826916447,-19.82529005404656]])print(f'Area:{area(polygon)}m²')print(f'Perimeter:{perimeter(polygon)}m')
Package: geomux
geomuxA tool that assigns guides to cell barcodes.Uses a hypergeometric distribution to calculate the pvalue of observing the
specific count of a guide for each guide in each barcode.
This can be used to calculate the MOI of the cell and assigned guides for each cell.
The resulting dataframe can then be used to intersect with your original data
to assign every cell to a barcode and allows you to filter
for the MOI you're interested in working with.InstallationpipinstallgeomuxUsageGeomux can be used either as a commandline tool or as a python moduleCommandlinewhen pip installing, an executable will be placed in your bin path. So you can call it directly from wherever in your filesystem# example usagegeomux-i<input.tab/input.h5ad>-o<output.tsv>You can also run the help flag to see the help menu for parameter options.$ geomux --help

usage: geomux [-h] -i INPUT [-o OUTPUT] [-u MIN_UMI] [-t THRESHOLD] [-c CORRECTION] [-j N_JOBS] [-q]

options:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input table to assign
  -o OUTPUT, --output OUTPUT
                        output table of barcode assignments (default=stdout)
  -u MIN_UMI, --min_umi MIN_UMI
                        minimum number of UMIs to consider a cell (default=5)
  -c MIN_CELLS, --min_cells MIN_CELLS
                        minimum number of cells to consider a guide (default=100)
  -t THRESHOLD, --threshold THRESHOLD
                        Pvalue threshold to use after pvalue correction (default=0.05)
  -C CORRECTION, --correction CORRECTION
                        Pvalue correction method to use (default=bh)
  -j N_JOBS, --n_jobs N_JOBS
                        Number of jobs to use when calculating hypergeometric distributions (default=1)
  -q, --quiet           Suppress progress messagesPython ModuleProcessing a 3-column TSV of [barcode, guide, n_umi]fromgeomuximportGeomux,read_tableinput="filename.tsv"matrix=read_table(input)gx=Geomux(matrix,cell_names=matrix.index.values,guide_names=matrix.columns.values,)gx.test()assignments=gx.assignments()Processing an h5ad file formatfromgeomuximportGeomux,read_anndatainput="filename.h5ad"matrix=read_anndata(input)gx=Geomux(matrix,cell_names=matrix.index.values,guide_names=matrix.columns.values,)gx.test()assignments=gx.assignmentsOutputsThe results ofgeomuxwill be an assignment dataframe that has as many
observations as there are input cells.The columns of this dataframe will include:cell_idThe name of the cell provided or the index.assignmentA list representing all significant guides within that cell.moiThe number of significant guides within the cell.n_umiThe number of UMIs observed in the cell.p_valueThe adjusted p-value of the hypergeometric test for that cell/guide test.log_oddsThe log odds of observing the highest scoring guide compared to the second highest.testedA bool flag representing whether the cell was included in the test (orFalseif it was filtered for low UMI counts)
Package: geomytry
GeomytryLibrary for working with geometryInstall by runningpip install geomytryor if on *NIX systems runpip3 install geomytryThe circles modulesThe circumference functionfromgeomytryimportcirclescircles.circumference(10)# OUTPUTS 62.8circles.circumference_from_diameter(20)# OUTPUTS 62.8circles.circumferenceTakes only 1 argumentThe radius of the circlecircles.circumference_from_diameterTakes 1 argumentDiameter of the circleThe radius functionfromgeomytryimportcirclescircles.radius(10)# OUTPUTS 3.1847Finds the radius of a circleTakes one parameterThe circumference of the circleThe arc length functionfromgeomytryimportcirclescircles.arc_length(30,100)# OUTPUT 8.333Finds the length of an arc using the given angle and circumferenceTakes two parametersmeasurement of the angle inside the circlecircumference of the circle
Package: geonames
The Geonames library parsesGeonames.orgdatasets into clean & simple OGR shapefile format.How to UseThis very simple Command Line Interface (CLI) converts the text file into a shapefile with a single line of code:$ geonames CF.txt
<Geonames - Central African Republic [15373]>InstallHow to installFiona:$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ubuntugis/ppa
$ sudo apt-get update
$ sudo apt-get install libgdal-dev
$ pip install fionaInstall Geonames usingPyPi:$ sudo pip install geonamesDocumentationDownload Geonames data using fromgeonames.org:$ wget http://download.geonames.org/export/dump/PH.zip
$ unzip PH.zipExport the dataset using the Geoname’s CLI:$ geonames PH.txt
<Geonames - Philippines [75003]>
Package: geonamescache
GeonamesCacheA Python library that provides functions to retrieve names, ISO and FIPS codes of continents, countries as well as US states and counties as Python dictionaries. The country and city datasets also include population and geographic data.Geonames data is obtained fromGeoNames.Installationpip install geonamescacheUsageA simple usage example:import geonamescache

gc = geonamescache.GeonamesCache()
countries = gc.get_countries()
# print countries dictionary
print(countries)
# you really wanna do something more useful with the data...SettingsCities datasetWhen creating aGeonamesCacheyou can set themin_city_populationparameter to either of 500, 1000, 5000 or the default 15000. The smaller the minimum popluation the more cities are included in the cities dataset.New in version 1.4MethodsCurrently geonamescache provides the following methods, that return dictionaries with the requested data:get_continents()get_countries()get_us_states()get_cities()get_countries_by_names()get_us_states_by_names()get_cities_by_name(name)get_us_counties()In addition you can search for cities by name.search_cities('NAME', case_sensitive=True, contains_search=True)This function returns a list of city records that match the givenNAME.By default thealternatenamesattribute is searched for matches.By default the search is case insensitive, it can be made case sensitive by changingcase_sensitiveto True.By default the search is contains, it can be made exact equality by changingcontains_searchto False.MappersThe mappers module provides function(s) to map data properties. Currently you can create a mapper that maps country properties, e. g. thenameproperty to theiso3property, to do so you'd write the following code:from geonamescache.mappers import country
mapper = country(from_key='name', to_key='iso3')

iso3 = mapper('Spain') # iso3 is assigned ESPContributingPlease write test(s) for any new feature. If you wish to build the data from scratch, runmake dlandmake json.
Package: geonames-lib
Library to query places from GeoName dumps (http://download.geonames.org/export/dump/).Installationgeonames requires Python 2.7 or 3.5+ as well asnumpyandpandaspackages. It can be installed with,pip install geonamesUsageThe best way to search for a specific location is to have a “filter” value and then the place’s name. The filter will reduce the number of rows to check considerably. For example, when searching for a location in the US there are (currently) 2237584 entries. However, once a state is specified (e.g. West Virigina) the number drops down to 35932; 1/60th of the original number of rows.importgeonamesimportioimporturllib.requestasrequestimportzipfilename='Bath(Berkeley Springs)'# (Berkeley Springs, West Virgina)# Download US geonames datasetUS=request.urlopen('http://download.geonames.org/export/dump/US.zip')zipfile=zipfile.ZipFile(io.BytesIO(US.read()))# Load datageo=geonames.GeoNames(zipfile.open('US.txt'))# Search with state specified (`admin1code` filters by state)location=next(geo.search(name=name,admin1code='WV'))print(location)Which (if all goes well) should output:geonameid                                              4.7987e+06
name                                             Berkeley Springs
asciiname                                        Berkeley Springs
alternatenames      Berkeley Spring,Berkeley Springs,Warm Springs
latitude                                                  39.6264
longitude                                                -78.2292
featureclass                                                    H
featurecode                                                  SPNG
countrycode                                                    US
countrycode2                                                  NaN
admin1code                                                     WV
admin2code                                                    065
admin3code                                                    NaN
admin4code                                                    NaN
population                                                      0
elevation                                                     185
dem                                                           194
timezone                                         America/New_York
modificationdate                                       2011-12-12
certainty                                                      86
Name: 741633, dtype: object
Package: geonames_postcode
geonames_postcode is a Python package to make geonames.org postcode
databases accessible in Python. It provides a command line tool to
fetch, preprocess, and store the data in a Python file per country.
In the result very fast (in-memory) queries by postcodes and names are
available using just a few MB per country. Some helper functions are
part of the package to solve common tasks like getting distances and
finding postcodes nearby.
Package: geonetworkx
GeoNetworkXPython tools for geographic graphsIntroductionGeoNetworkX is a project to add support for geographic graphs to NetworkX (in the same way that GeoPandas support
geographic data to Pandas). It currently implements four data structures that extends the networkx graph classes (Graph,
MultiGraph, DiGraph, MultiDiGraph).InstallRequirementspyproj>=2.2geopy>=1.12.0geopandas>=0.7networkx>=2.3numpy>=1.12.0pandas>=0.25.0shapely>=1.2.18scipy>=0.19.0rc2nose>=1.3.7Optional packages:srtm (for elevation data)pyvoronoi (for voronoi utils)osmnx (for OSM data)InstallationpipinstallgeonetworkxTrouble when installing GeoNetworkX on WindowsIf you are usingcondaon Windows, the binaries downloaded automatically
are broken, andrtreeisunable to work properly.A workaround is to download manually the binary fromthis webpage.
Please download the binary corresponding to your system and your
Python version (3.6 or 3.7). You have notably to download:Binary forRtreeBinary forGDALBinary forFionaDocumentationOnline documentation is available here:https://geonetworkx.readthedocs.ioTestsTests can be launched withunittestwith the following command:python -m unittest discover -v geonetworkxOr withnoselike this:nosetests geonetworkx -v --with-doctest
Package: geo-ng
geo-ngA python package that provides geographical information about States, Local Govenment Areas and towns in NigeriaInstallationpip install geo-ngUpgradepip install geo-ng --upgradeUsage# import packagefromgeo_ngimportgeo_ng# Get all existing statesgeo_ng.get_states()# Get states by regiongeo_ng.get_states_by_region(region_code)# Get all existing local govenment areasgeo_ng.get_lgas()# Get local govenment by stategeo_ng.get_lgas_by_state(state_code)# Get towns by local govenment areageo_ng.get_towns_by_lga(lga_code)
Package: geonode-announcements
Some sites need the ability to broadcast an announcement to all of their
users. django-announcements was created precisely for this reason. How you
present the announcement is up to you as the site-developer. When working with
announcements that are presented on the website one feature is that they are
only viewed once. A session variable will hold which announcements an user has
viewed and exclude that from their display. announcements supports two
different types of filtering of announcements:site-wide (this can be presented to anonymous users)non site-wide (these can be used a strictly a mailing if so desired)members only (announcements are filtered based on the value ofrequest.user)
Package: geonode-django-activity-stream
Django Activity StreamWhat is Django Activity Stream?Django Activity Stream is a way of creating activities generated by the actions on your site.It is designed for generating and displaying streams of interesting actions and can handle following and unfollowing of different activity sources.
For example, it could be used to emulate the Github dashboard in which a user sees changes to projects they are watching and the actions of users they are following.Action events are categorized by four main components.Actor. The object that performed the activity.Verb. The verb phrase that identifies the action of the activity.Action Object.(Optional)The object linked to the action itself.Target.(Optional)The object to which the activity was performed.Actor,Action ObjectandTargetareGenericForeignKeysto any arbitrary Django object and so can represent any Django model in your project.
An action is a description of an action that was performed (Verb) at some instant in time by someActoron some optionalTargetthat results in anAction Objectgetting created/updated/deleted.For example:justquick(actor)closed(verb)issue 2(object)ondjango-activity-stream(target)12 hours agoNomenclature of this specification is based on the Activity Streams Spec:http://activitystrea.ms/For complete documentation seeDjango Activity Stream DocumentationContributorsThis project exists thanks to all the people who contribute!
Package: geonode-django-dynamic-model
django-dynamic-modelsOverviewDynamic Django models allow users to define, edit, and populate their own database tables and apply runtime schema changes to the database.django-dynamic-modelsis loosely based on theruntime dynamic modelstalk from DjangoCon 2011. The basic concept involves around dynamic class declaration using the built-intypefunction.typeis used to dynamically declare new Django models at runtime, and it is the goal of this project to provide a simple API to allow developers to get started with dynamic models quickly.This package provides models to help Django developers quickly implement dynamic models for their specific use case, while the handling the runtime schema changes and updates to Django's model registry under the hood. The schema changes are applied in pure Django,withoutthe migrations framework, so none of your dynamic models will affect your migrations files at all.Disclaimer:It is not recommended to use this project for business critical data due to the high potential for data loss. Tables can be dropped very easily, and without backups, even a small user error could be catastrophic.DocumentationSee thewikifor documentation.