Saravanan666/pypi-org huggingface dataset:
Package: coordinate
Coordinate is a standalone server process and client library for
multiple-system coordination and synchronization capabilities. It
manages work specifications and work units, weighted scheduling,
priority scheduling, and dependency graph.Configuration and executionIn a global yakonfig config.yaml configuration file, addcoordinateat the top level:coordinate:
  server:
    host: 0.0.0.0
    port: 5932
  namespace: *namespace
  registry_addresses: ['10.0.1.x:5932']Runcoordinatedwith this configuration, or manually specify--hostand--port. The default configuration is to only listen
on the localhost interface on port 5932.The main interface is through theTaskMasterobject. This
implementation makes RPC calls to the coordinated server.The server is pluggable and additional functionality can be through
other server objects similar to the JobQueue class.RPC systemCoordinated uses a simple RPC system based on CBOR messages. Client
processes initiate a TCP connection as indicated in the configuration
and send CBOR messages like (JSON syntax):{"id": 1,
 "method": "lock",
 "params": [...]}whereidis a sequential number per client object, starting at 1.
There is one TCP connection per client object, but this connection is
held open until explicitly closed.The responses look like:{"id": 1,
 "result": "value"}Or:{"id": 2,
 "error": {"message": "No such method"}}If the server-side call raised an exception, the formatted traceback is
included as the error message.The server supports a CBOR list of request messages, and will return a
CBOR list of responses.Client classes subclasscoordinated._cbor_rpc_client.CborRpcClientand call_rpc()to perform a call. This method blocks on the
connection and response. If the server returned the error form, this is
raised as an exception.The server is run with a proxy object, presentlycoordinated.lockd.MultiBackendProxyObject, and calls the requested
methods on that object with the requested parameters.
Package: coordinate-canvas
Coordinate CanvasInteractive canvas that allows you to draw 2D coordinates in a plane and output their corresponding coordinates to a JSON file.[!NOTE]
All instructions in this README assume your Python 3.11.6+ installation is in your PATH and is aliased underpython. If this is not the case, you will need to replacepythonwith the alias or path that points to the correct Python executable.Installationpython-mpipinstallcoordinate-canvas# Use dash instead of underscore!UsageYou can display the help message by running the following command:python-mcoordinate_canvas--help# Use underscore instead of dash!Once the canvas has been opened, you will be able to click on any part of it and add a new coordinate. Lines can be switched using the numeric pad on the keyboard, as explained on the header of the window.Once you have added all the desired coordinates, just press the "Escape" or "Q" keys or close the window. A JSON file will be generated containing all the coordinates you added. This is how the JSON structure looks like:{"line_1":{"x":[3.064516129032258,5.510752688172044,10.45698924731183,14.045698924731184,...],"y":[8.837828837828837,13.18015318015318,13.126873126873129,8.03862803862804,...]},"line_2":{...},...}Data retrievalJSON data can easily be retrieved with a few lines of code.importjson# Assuming the script is located in the same directory where the program is#   being executed (if not, modify the path below):withopen("coordinates.json",mode="r",encoding="utf-8")asfp:data=json.load(fp)# Loads all data in a dictionary.# Ways to retrieve data:line_1=data["line_1"]line_1_x=data["line_1"]["x"]line_1_y=data["line_1"]["y"]line_1_xy=[(x,y)forx,yinzip(data["line_1"].values())]# Recommended!ContributingIf you are planning on contributing to the repository, take a look at thecontribution guidelines.
Package: coordinate-conversion
Coordinate ConversionCoordinate Conversion is a Python package that provides functions for converting coordinates between Cartesian, spherical, and cylindrical systems.InstallationYou can install Coordinate Conversion using pip:pipinstallcoordinate_conversionUsageimportcoordinate_conversion# Convert Cartesian coordinates to sphericalx,y,z=1,1,1r,theta,phi=coordinate_conversion.cartesian_to_spherical(x,y,z)print("Spherical coordinates:",r,theta,phi)# Convert spherical coordinates to Cartesianx,y,z=coordinate_conversion.spherical_to_cartesian(r,theta,phi)print("Back to Cartesian coordinates:",x,y,z)# Convert Cartesian coordinates to cylindricalrho,phi,z=coordinate_conversion.cartesian_to_cylindrical(x,y,z)print("Cylindrical coordinates:",rho,phi,z)# Convert cylindrical coordinates to Cartesianx,y,z=coordinate_conversion.cylindrical_to_cartesian(rho,phi,z)print("Back to Cartesian coordinates:",x,y,z)# Convert spherical coordinates to cylindricalrho,phi,z=coordinate_conversion.spherical_to_cylindrical(r,theta,phi)print("Spherical to Cylindrical:",rho,phi,z)# Convert cylindrical coordinates to sphericalr,theta,phi=coordinate_conversion.cylindrical_to_spherical(rho,phi,z)print("Back to Spherical coordinates:",r,theta,phi)# Convert GPS coordinates to Cartesianlatitude,longitude,altitude=19.741755,-155.844437,0x,y,z=coordinate_conversion.gps_to_cartesian(latitude,longitude,altitude)print("Cartesian coordinates from GPS:",x,y,z)# Convert Cartesian coordinates back to GPSlatitude,longitude,altitude=coordinate_conversion.cartesian_to_gps(x,y,z)print("GPS coordinates from Cartesian:",latitude,longitude,altitude)
Package: coordinate-finder
Mars Coordinate FinderContentsDescriptionInstallationUsageGenerating a JSON file that bounds a required locationDescriptionThis package allows the user to generate equidistant latitude and longitude coordinates within a region
defined by the user.As most of the work done within Mars is not concerned with locations within the ocean, this package limits
the coordinates to those that are on land and ensures the equidistant locations are only over land mass.There are two methods within this package:The first can find equidistant coordinates within a region bounded by North, South, East and West coordinates.The second can take a JSON file that defines the boundary coordinates of given region and creates equidistant
points within this regionThe result of either of these methods can be stored as a JSON for use using the createJSON methodInstallationUse the package manager pip to install coordinate_finderpipinstallcoordinate-finderUsageTo use this package you can reference the following commands as an example:fromcoordinate_finderimportMarscoordfindercoords=Marscoordfinder()# Code to generate equidistant points within a boxed region# land_points are points within the region on land# equidistant_points are the number of coordinates (in this case 40) equidistant across the land in this region# n & s are the North and South Latitudes you wish to use as the boundaries# e & w are the East and West longitudes you wish to use as Boundaries# fidelity is the granularity of the defined grid, a smaller fidelity will give a finer granularityland_points,equidistant_points=coords.getNPointsInRegion(40,n=30,s=26,e=86.9,w=83.3,fidelity=0.08)# Code to generate equidistant points within a custom defined boundaryland_points,equidistant_points=coords.pointsInRegion(40,'BRA_Shape_Points.json')# Code to write the calculated coordinates to a JSON filecoords.createJson(equidistant_points,'C:/Users/smithjoh/Documents/output_coords.json')Generating a JSON file that bounds a required locationGo tohttps://gadm.org/download_country_v3.htmland search for the country you want a region withinDownload the shapefile for this countryGo tohttps://mapshaper.org/and upload all the files at the _0 level (this will give the country outline)Export the GeoJSON files which will give a JSON file of all the cooridnates of the country outlinesThis can now be used with the package
Package: coordinate-geomentry
Basic Coordinate Geomentry Formulae##Here you can use the formulae ofDistance formula of slopeslope formula in graphMidpoint formula of slopeGraph is parallel or notGraph is perpendicular or notArea of triangle in graph#Installation####Install this PYPI package by using'''pip install coordinate_geomentry1'''####Contributor: S.Sruthi####Mentor: Vidhya
Package: coordinate-geometry
coordinate_geometryFeaturesHelps to perform various operations on points like calculate distance between them, write equation formed by themPerform various tasks in equation of lines like calculate distance between point and line , find image of point in a line etcfind area of triangle formed by three points , incentre , circumcentre, orthocentre etcImportant things to know about equationsequation_type1(slope , y_intercept) --> Creates a line object with slope and y_interceptequation_type2(a, b, c) --> Creates a line object in form ax + by + c = 0equation_type3(x_intercept , y_intercept) --> Creates a line object with x_intercept and y_interceptequation_type4(pt:point , slope) --> Creates a line object with pt ( a point object ) and slopeequation_type5(pt:point , pt2:point) --> Creates a line object with given two point objects , throws error if both points are sameThese types can not be used to make lines parallel to y-axisIMPORTSfrom coordinate_geometry.point import *from coordinate_geometry.equations import *from coordinate_geometry.triangle import *ExamplesPointDistance Formulap1=point(3,0)p2=point(0,4)print(p1.distance(p2)) # --> 5.0Section FormulaInternal divisionp1=point(4,4)p2=point(8,8)print(p1.section(p2,m=1,n=3)) # --> ( 5.0 , 5.0 )External divisionp1=point(4,4)p2=point(8,8)print(p1.section(p2,m=1,n=3,external=True)) # --> ( 2.0 , 2.0 )Slopep1=point(1,1)p2=point(3,3)print(p1.slope(p2)) # --> 1.0TrianglesA=point(0,0)B=point(5,0)C=point(5math.cos(math.pi/3),5math.sin(math.pi/3))t1=Triangle(A,B,C) # NOTE : THIS IS A EQUILATERAL TRIANGLE , SO IT MUST HAVE SAME INCENTRE, ORHTOCENTRE , CENTROID and CIRCUMCENTREprint(t1.area()) # --> 10.82532print(t1.incenter()) --> ( 2.5 , 1.4433757 )print(t1.centroid()) --> ( 2.5 , 1.4433757 )print(t1.circumcenter()) --> ( 2.5 , 1.4433757 )print(t1.orthocenter()) --> ( 2.5 , 1.4433757 )LineSolving Two Linesl1=equation_type2(a=3,b=4,c=-5)l2=equation_type2(a=3,b=-4,c=-7)print(l1.solve(l2)) # --> ( 2.0 , -0.25   )Angle Between two linesl1=equation_type5(point(1,1),point(2,2))l2=equation_type5(point(-1,1),point(-3,3))print(l1.slope) # --> 1.0print(l2.slope) # --> -1.0print(l1.angle(l2)) # --> 1.5707963267948966 (PI/2)print(l1.is_perpendicular(l2)) # --> Trueprint(l1.is_parallel(l2)) # --> FalseDistance Between point and linel1=equation_type4(point(0,0),0) # X axispt=point(3,0)pt1=point(0,3)print(l1.distance(pt)) # --> 0.0print(l1.distance(pt1)) # --> 3.0Image of a point and foot of perpendicular in a linel1=equation_type4(point(0,0),1)pt=point(1,2)print(l1.foot_of_perpendicular(pt)) # --> ( 1.5 , 1.5 )print(l1.image_of_point(pt)) # --> ( 2.0 , 1.0 )LICENSE© 2021 Deepak Kumar DashThis repository is licensed under MIT license.See LICENSE for details
Package: coordinate-projector
Coordinate ProjectorThis is the Norwegian Geotechnical Institute (NGI) Python package for projecting coordinates.
It is a small shim on top of the librarypyprojthat again is an interface toPROJ.References:Latest releases seeCHANGES.mdInstallation (end user)pipinstallcoordinate-projectorBasic usageProject a pointfromcoordinate_projectorimportProjectorprojector=Projector()from_srid="4326"to_srid="3857"# Paris Lat(48.8589506) Lon(2.2768485) EPSG:4326from_east,from_north=2.2768485,48.8589506projected_east,projected_north=projector.transform(from_srid,to_srid,from_east,from_north)# Paris Lat(6250962.06) Lon(253457.62) EPSG:3857 is in metres - 2D projectionassertabs(projected_east-253457.62)<=0.01assertabs(projected_north-6250962.06)<=0.01print(f"{projected_east=},{projected_north=}")# projected_east=253457.6156334287, projected_north=6250962.062720417Getting Started developingSoftware dependenciesPython 3.9 or higherPoetryblack code formatterClone this repositoryInstallpoetry installBuild and TestRun in the project root folder:poetry shell pytestBuild the package wheel:poetry buildPublishTODOsHandle linesHandle polygonsContributePlease start by adding an issue before submitting any pull requests.
Package: coordinates-converter
L-Est97 to WGS84 coordinates converterSimple application for converting L-Est97 to WGS84 coordinates.
This application has GUI, but it can also be used programmatically.Runs on Python 2.7 and Python 3InstallationApplication can be installed via pip:pip install coordinates-converterUsageTo launch GUI application write the following command to the terminal.coordinates-appIf users want to convert coordinates in the code, then simple api is provided:fromcoordinates.converterimportCoordinateConverter,WGS84,L_Est97converter=CoordinateConverter# converting to L-Est97wgs_point=WGS84(lat=59.39528,long=24.664104611385)print(converter.wgs84_to_l_est97(wgs_point))# converting to WGS84est97_point=L_Est97(x=6543210.14,y=543210.86)print(converter.l_est97_to_wgs84(est97_point))# module can also convert decimal degrees to degree-minute-second systemfromcoordinates.converterimportconvert_decimal_to_degrees,convert_degrees_to_decimalprint(convert_decimal_to_degrees(10.51))print(convert_degrees_to_decimal(10,30,36.0))# L-Est97 system has coordinate boundaries where it can be used.# These boundaries can be checked with validatorfromcoordinates.converterimportLEst97CoordinatesValidatorvalidator=LEst97CoordinatesValidator()print(validator.validate_projected_x(6543210.14))print(validator.validate_projected_y(543210.86))print(validator.validate_wgs84_latitude(59.39528))print(validator.validate_wgs84_longitude(21.09))DocumentationDocumentation can be found hereDeveloper guide.InstallationSourcecode can be found inGitLabFor building the app from source, runpip install -editable .TestsTests are written inpytestand for running tests pytest is needed.To install pytest run:pip install pytestTo execute test suite:python -m pytest tests/Code QualityContinuous integration environment checks that code complies with PEP8 checcks.
For testing code qualityflake8is used.To install flake8 tests it must be installed:pip install flake8Flake8 tests can be run with following command:flake8 coordinates/Task specification
Package: coordinates-label-photos
Coordinates label photosThe problem we are trying to solve:On the one hand, we have a photos with unlabeled GPS data, but only a timestamp.
In the other hand, we have a GPS track, with coordinates and timestamp.
This situation is originally caused by the fact that pictures are taken underwater but we can position a GPS above the water.
Our purpose is to interpolate the GPS position from the track, with the photo timestamp and insert the information in the EXIF photo metadata.Installationpip install coordinates-label-photosRunTo label all images from/path/to/images-directory/*with the GPX track points frompath/to/your.gpxor LLH (Reach RS 2) format:coordinates-label-photos --coords=/path/to/your.gpx --images=/path/to/images-directoryTrycoordinates-label-photos --helpto see how to save image locations in a separate file, output reports, set accuracy and more.Other UtilsA few side tools may come handy in some situationsRemoving GPS information from picturescoordinates-clear-photos --images=/path/to/images-directorySelecting the closest images to a point listDuring acquisition, excessive number of pictures can be taken (when strolling outside of the perimeter or moving not fast enough).
If we provide a list of positions where the images should have been taken, we can select only the closest images to each of those position.select-closest-photos \
     --coords=/path/to/perfect-positions.csv  \
     --images=/source/image/directory \
     --dest=/selected/image/directory \
     --report=/path/to/report.pngComparing GPX tracksCompare various coords tracks, from .gpx, .llh, .pos (useful to plot the same track from different GPS):plot-coords-tracks --gpx="gps A:/path/to/a.gpx"  --gpx="gps B:/path/to/b.gpx" --output=/path/to/plot.jpegExtracting photos coordinates to a GPX fileFrom a directory containing images (with GPS locations), create a GPX file:images-to-gpx --output=/path/to/a.gpx  --images=/path/to/images-directoryLicenseMITDevelopmentSetuppython3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtTestingpytestPIPy deploymentIncrease the version insetup.cfg.Github release.Juste create a new release on github and let the action flow.dev laptop releaserm dist/*
python3.11 -m build
python3.11 -m twine upload dist/*
Package: coordinator
coordinatorA simple library that manages hooks in Python applications.ExampleSimplest examplefromgeventimportmonkey;monkey.patch_all()fromcoordinatorimportCoordinatorcoord=Coordinator()@coord.register_task("my_hook")defmy_task(context):print(context["message"])coord.fire_hook("my_hook",{"message":"Hello, World!"})Full documentation is WIP.
Package: coordinator-data-tasks
======================Coordinator Data Tasks======================.. image:: https://img.shields.io/pypi/v/coordinator_data_tasks.svg:target: https://pypi.python.org/pypi/coordinator_data_tasks.. image:: https://img.shields.io/travis/ScottSnapperLab/coordinator_data_tasks.svg:target: https://travis-ci.org/ScottSnapperLab/coordinator_data_tasks.. image:: https://readthedocs.org/projects/coordinator-data-tasks/badge/?version=latest:target: https://coordinator-data-tasks.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image:: https://pyup.io/repos/github/ScottSnapperLab/coordinator_data_tasks/shield.svg:target: https://pyup.io/repos/github/ScottSnapperLab/coordinator_data_tasks/:alt: UpdatesA python-based command line utility to automate some of the most common data tasks faced by the Clinical Coordinators.* Free software: MIT license* Documentation: https://coordinator-data-tasks.readthedocs.io.Features--------* left joins on multiple columns* smart loading of \*.xls, \*.xlsx, \*.csv, \*.csv.gz filesCredits---------This package was created with Cookiecutter_ and the `xguse/cookiecutter-pypackage`_ project template which is based on `audreyr/cookiecutter-pypackage`_... _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage.. _`xguse/cookiecutter-pypackage`: https://github.com/xguse/cookiecutter-pypackage=======History=======v0.0.5 / 2017-10-25===================* updated docs* Makefile: pull-req-check aliased to test-all* flake8* make test-all now tests docs buildv0.0.4 / 2017-10-25===================* travis tests now passing* changed pypi deploy target to 3.7* utils/loaders.py: added file (smart table loaders)* track some xls files for testsv0.0.3 / 2017-10-24===================* Makefile: experimenting with install structure* test_coordinator_data_tasks.py: removed useless test* cli.py: added join subcommands* requirements.dev.pip.txt: mypy lives here now* docs/index.rst: fixed too few `==` under title* docs/conf.py: upgraded auto-build code* left_join.py: more log entries* moved recommonmark req to requirements.pip.txt* got tox to work* Makefile: experimenting with install structure* MANIFEST.in: add req files to allow tox to work* flake8* removed setup and test specific req files* README.rst: fixed badge address errors* fix repo in travis ci setupv0.0.2 / 2017-10-23===================* prelim tests* allow from coordinator_data_tasks import commands* travis ci setupv0.0.1 / 2017-10-23===================* setup.py: update metadata (language support)* configure tox* Makefile: formatting* Makefile: py.test -> pytest* setup.py: pick up reqs from req.txt files* setup.cfg: ignore some errors* Makefile: upgraded help, supported conda install* requirements.dev.txt: unpin for now* added commands pkg* added utils pkg* added extra requirements subfiles (pip,setup,etc)* ignore binary document extentions* ignore vscode and mypy_cache
Package: coordsystems
CoordSystemsCoordSystems is a Python package to help working with different coordinate reference systems at the same time. The intention is to support annotated types for Cartesian, Polar and Spherical coordinates.UsageThe Coordinate types carries out the conversion when needed. For example, when summing aCartesianand aSpherical, theSphericalwill be first converted toCartesian, and then summed up.fromcoordsystemsimportCartesian,Sphericalc=Cartesian([1,2,3])# x = 1, y = 2, z = 3s=Spherical([1,0,0])# r = 1, θ = 0, φ = 0Cartesian(s)# Cartesian([0, 0, 1])c+s# Cartesian([1, 2, 4])c.x# 1s.phi# 0Cartesian systemIn a Cartesian System (here assuming 3D), each coordinate is written as a multiple of a unit basis vector ($\vec i$, $\vec j$ and $\vec k$). Those unit vectors are in the direction usually known as $x$ (for $\vec i$), $y$ (for $\vec j$) and $z$ (for $\vec k$).To mark a point as a Cartesian point, just use theCartesianconstructor, passing alistornumpy.ndarraywith each coordinate, or anotherCoordinateobject.In a Cartesian system, the vector sum is just the element-wise sum. So $(1,2,3) + (1,0,0) = (2,2,3)$.Spherical systemIn a Spherical System (necessarily 3D), each point is described also by three coordinates (because they are the same $\mathbb{R}^3$ space), but now with $r$ (radius), $\theta$ (polar angle) and $\phi$ (azimuthal angle).Different from Cartesian systems, here the vector sum isn't trivial. For example, $(2, \frac{\pi}{2}, \pi) + (\frac{1}{2}, \frac{\pi}{6}, 0) = (1.7321, \frac{\pi}{3}, \pi)$. Actually, it's easier to convert them to Cartesian, perform the sum, and convert it back again. Luckily, aSphericalobject do it for you:>>>importnumpyasnp>>>fromcoordsystemsimportSpherical>>>Spherical([2,np.pi/2,np.pi])+Spherical([1,np.pi/6,0])Spherical([1.7320508075688772,1.0471975511965976,3.141592653589793])Accessing coordinatesIn ap = Cartesian(...), you can access directly each coordinate (p.x,p.y,p.z) or use indexing (p[0] == p['x'] == p.x).In aq = Spherical(...), you can also access each coordinate independently (q.r,q.thetaandq.phi). Indexing notation isn't implemented yet.In any case, the implemented operations takes care of the system and try to do any operation in a Cartesian base, converting stuff when appropriate.TODOWe still need to implement many things in this package before it gets ready for production.Number * CoordinatemultiplicationSphericalindexing accessOption to choose the symbol for polar and azimuthal angles (if θ = polar and φ = azimuthal or the opposite).Cartesian custom basis (allow not only the canonical basis).
Package: coordTransform
coordTransform========coordTransform 坐标转换模块用于百度坐标系(bd09)、火星坐标系(国测局坐标系、gcj02)、WGS84坐标系的相互转换。主流地图使用坐标系-------------  百度地图: bd09-  高德地图、谷歌地图（国内）: gcj02-  高德地图、谷歌地图（国外）: wgs84-  GPS原始坐标: wgs84安装说明-------------Install using `pip <http://www.pip-installer.org/en/latest/>`__ with:::pip install coordTransform使用说明--------.. code::pythonimport coordTransform as ctlng = 128.543lat = 37.065#火星坐标系->百度坐标系result1 = ct.gcj02_to_bd09(lng, lat)#百度坐标系->火星坐标系result2 = ct.bd09_to_gcj02(lng, lat)#WGS84坐标系->火星坐标系result3 = ct.wgs84_to_gcj02(lng, lat)#火星坐标系->WGS84坐标系result4 = ct.gcj02_to_wgs84(lng, lat)#百度坐标系->WGS84坐标系result5 = ct.bd09_to_wgs84(lng, lat)#WGS84坐标系->百度坐标系result6 = ct.wgs84_to_bd09(lng, lat)print (result1, result2, result3, result4, result5, result6)坐标系简介----------- WGS－84原始坐标系，一般用国际GPS纪录仪记录下来的经纬度，通过GPS定位拿到的原始经纬度，Google和高德地图定位的的经纬度（国外）都是基于WGS－84坐标系的；但是在国内是不允许直接用WGS84坐标系标注的，必须经过加密后才能使用。- GCJ－02坐标系，又名“火星坐标系”，是我国国测局独创的坐标体系，由WGS－84加密而成，在国内，必须至少使用GCJ－02坐标系，或者使用在GCJ－02加密后再进行加密的坐标系，如百度坐标系。高德和Google在国内都是使用GCJ－02坐标系，可以说，GCJ－02是国内最广泛使用的坐标系。- 百度坐标系:bd-09，百度坐标系是在GCJ－02坐标系的基础上再次加密偏移后形成的坐标系，只适用于百度地图。