Saravanan666/pypi-org huggingface dataset:
Package: mapkick
Mapkick.pyCreate beautiful JavaScript maps with one line of Python. No more fighting with mapping libraries!See it in actionFor charts, check outChartkick.pyInstallationRun:pipinstallmapkickMapkick usesMapbox GL JS v1. To use tiles from Mapbox,create a Mapbox accountto get an access token and setMAPBOX_ACCESS_TOKENin your environment.Then follow the instructions for your web framework:DjangoFlaskDjangoAdd toINSTALLED_APPSinsettings.pyINSTALLED_APPS=['mapkick.django',# ...]Load the JavaScript{%loadstatic%}<script src="{%static'mapkick.bundle.js'%}"></script>Create a map in a viewfrommapkick.djangoimportMapdefindex(request):map=Map([{'latitude':37.7829,'longitude':-122.4190}])returnrender(request,'home/index.html',{'map':map})And add it to the template{{map}}FlaskRegister the blueprintfrommapkick.flaskimportmapkick_blueprintapp.register_blueprint(mapkick_blueprint)Load the JavaScript<script src="{{url_for('mapkick.static',filename='mapkick.bundle.js')}}"></script>Create a map in a routefrommapkick.flaskimportMapdefindex():map=Map([{'latitude':37.7829,'longitude':-122.4190}])returnrender_template('home/index.html',map=map)And add it to the template{{map}}MapsPoint mapMap([{'latitude':37.7829,'longitude':-122.4190}])Area mapAreaMap([{'geometry':{'type':'Polygon','coordinates':...}}])DataData can be a listMap([{'latitude':37.7829,'longitude':-122.4190}])Or a URL that returns JSON (same format as above)Map('/restaurants')Point MapUselatitudeorlatfor latitude andlongitude,lon, orlngfor longitudeYou can specify a label, tooltip, and color for each data point{'latitude':...,'longitude':...,'label':'Hot Chicken Takeover','tooltip':'5 stars','color':'#f84d4d'}Area MapUsegeometrywith a GeoJSONPolygonorMultiPolygonYou can specify a label, tooltip, and color for each data point{'geometry':{'type':'Polygon','coordinates':...},'label':'Hot Chicken Takeover','tooltip':'5 stars','color':'#0090ff'}OptionsWidth and heightMap(data,width='800px',height='500px')Marker colorMap(data,markers={'color':'#f84d4d'})Show tooltips on click instead of hoverMap(data,tooltips={'hover':False})Allow HTML in tooltips (must sanitize manually)Map(data,tooltips={'html':True})Map styleMap(data,style='mapbox://styles/mapbox/outdoors-v12')Zoom and controlsMap(data,zoom=15,controls=True)Refresh data from a remote source everynsecondsMap(url,refresh=60)Pass options directly to the mapping libraryMap(data,library={'hash':True})See the documentation forMapbox GL JSfor more infoHistoryView thechangelogContributingEveryone is encouraged to help improve this project. Here are a few ways you can help:Report bugsFix bugs andsubmit pull requestsWrite, clarify, or fix documentationSuggest or add new featuresTo get started with development:gitclonehttps://github.com/ankane/mapkick.py.gitcdmapkick.py
pipinstall-rrequirements.txt
pytest
Package: mapkick-static
Mapkick StaticCreate beautiful static maps with one line of Python. No more fighting with mapping libraries!See it in action:fire: For JavaScript maps, check outMapkick.pyInstallationRun:pipinstallmapkick-staticThen follow the instructions for your web framework:DjangoFlaskMapkick Static uses theMapbox Static Images API.Create a Mapbox accountto get an access token and setos.environ['MAPBOX_ACCESS_TOKEN']in your environment.DjangoCreate a map in a viewfrommapkick.staticimportStaticMapdefindex(request):map=StaticMap([{'latitude':37.7829,'longitude':-122.4190}])returnrender(request,'home/index.html',{'map':map})And add it to the template{{map}}FlaskCreate a map in a routefrommapkick.staticimportStaticMapdefindex():map=StaticMap([{'latitude':37.7829,'longitude':-122.4190}])returnrender_template('home/index.html',map=map)And add it to the template{{map}}MapsPoint mapStaticMap([{'latitude':37.7829,'longitude':-122.4190}])Area mapStaticAreaMap([{'geometry':{'type':'Polygon','coordinates':...}}])DataData can be an arrayStaticMap([{'latitude':37.7829,'longitude':-122.4190}])Point MapUselatitudeorlatfor latitude andlongitude,lon, orlngfor longitudeYou can specify a color for each data point{'latitude':...,'longitude':...,'color':'#f84d4d'}Area MapUsegeometrywith a GeoJSONPolygonorMultiPolygonYou can specify a color for each data point{'geometry':{'type':'Polygon','coordinates':...},'color':'#0090ff'}OptionsWidth and heightStaticMap(data,width=800,height=500)Alt textStaticMap(data,alt='Map of ...')Marker colorStaticMap(data,markers={'color':'#f84d4d'})Map styleStaticMap(data,style='mapbox/outdoors-v12')HistoryView thechangelogContributingEveryone is encouraged to help improve this project. Here are a few ways you can help:Report bugsFix bugs andsubmit pull requestsWrite, clarify, or fix documentationSuggest or add new featuresTo get started with development:gitclonehttps://github.com/ankane/mapkick-static.py.gitcdmapkick-static.py
pipinstall-rrequirements.txt
pytest
Package: mapkit
# MapKit
* Author: Nathan Swain, Alan Snow
* Copyright: (c) Brigham Young University 2013
* License: BSD 2-Clause[![PyPI version](https://badge.fury.io/py/mapkit.svg)](https://badge.fury.io/py/mapkit)# INTRODUCTIONMapKit is a Python module with mapping functions for PostGIS enabled PostgreSQL databases.# DEPENDENCIESSQLAlchemyPostGIS enabled PostgreSQL databaseTo load rasters into the database, you will need raster2pgsql executable that comes with a PostGIS installation# INSTALLATIONIf you are using Anaconda (https://www.continuum.io/why-anaconda):` $ conda install-cconda-forgemapkit `Otherwise, you can install through the regular Python methods:` $ easy_install mapkit `or` $ pip install mapkit `# DEVELOPER INSTALLATIONClone the source at:` $ git clonehttps://github.com/CI-WATER/mapkit.git`and run:` $ python setup.py install `
Package: maplapse
MapLapseis a Python-based library to create animated timelapse maps from given shapefiles. It is mainly built on top ofgeopandasandmatplotlib, along with other open-source geospatial packages.Key FeaturesAnimatedchoroplethmapsAnimatedproportional circlemapsSupports output in.gifand.mp4ExampleTheAnimatorobject ofmaplapsecan easily create the animations. Here is a code snippet:anim = Animator(shape='/county_shape.shp',
                value='/century_data.csv',
                time_column='Year',
                data_column='Value',
                shape_unique_column='ST_CNT',
                map_type='choropleth',
                out_path='/animation.gif')
anim.animate()Output:InstallationSimply usepip install maplapse.ProblemsIf you face any issues with the library, please create an issue by following up the stepshere
Package: maplearn
# Mapping Learning #
![logo_100.png](https://bitbucket.org/repo/5Rn74B/images/2433912438-logo_100.png)Mapping Learning se veut un outil pour assister l’utilisateur dans une tache de
cartographie automatisee (d’images issues de teledetection, notamment). Il
donne acces a un grand nombre d’algorithmes issus du domaine duMachine
Learning, ainsi que des moyens pour les appliquer a des jeux de donnees de
differentes natures (tableau, image, donnees vectorielles).## Fonctionnalites ##Nombreux algorithmes de classification supervisee et non supervisee, et de regressionEmploi de methode robuste (k-fold) et possibilite d’optimiser les algorithmesPlusieurs pretraitements : reductions de dimensions…Lecture/Ecriture d’une grande variete de formats de fichiers, geographiques ou nonRendu du resultat sous la forme d’un rapport standardiseAccompagnement de l’utilisateur avec des conseils statistiques ou empiriques## Developpement ##Mapping Learning est developpe en Python et fait appel a des librairies Open Source dont scikit-learn et mlpy pour les algorithmes de Machine Learning, osgeo (Gdal/Ogr) pour la manipulation des donnees geographiques.Mapping Learning est un logiciel libre, sous licence LGPL v3.
Alban Thomas (alban.thomas@univ-rennes2.fr)![letg.jpeg](https://bitbucket.org/repo/5Rn74B/images/1800694338-letg.jpeg)![sgdn.jpeg](https://bitbucket.org/repo/5Rn74B/images/612087003-sgdn.jpeg)![ur2.png](https://bitbucket.org/repo/5Rn74B/images/2154561398-ur2.png)
Package: maplestory-openapi
MapleStory OpenAPI Python LibraryThis Python library enables the use of the MapleStory OpenAPI of Nexon.Packages written in other languages can be foundHERE.(한국어 문서는이쪽입니다.)InstallationInstall the latest version of the Python library in your python project:pipinstallmaplestory-openapiUsageAPI KeyBefore using the library, register your application and obtain anapi keyfrom theNexon Open API Console.Supports≧ Python 3.9Sample Codefrommaplestory_openapiimportMapleStoryApiapi_key='{Your API Key}'api=MapleStoryApi(api_key=api_key)ocid=api.get_character_id('{Your Character Name}').ocidcharacter_basic_info=api.get_character_basic(ocid=ocid)Exception Handlinghttps://openapi.nexon.com/guide/request-api/#error-code-table
Package: maplewood
Maplewoodmaplewood is a Python Library for creating logfiles in Plain Text(.txt) FormatCompatibilitymaplewood has been tested to work on Windows, but should work on Linux and MacOS as wellInstallingmaplewood can be installed using pip or any PyPI package managerspipinstallmaplewoodUsage# import the chainsaw module# containing the 'Chainsaw' classfrommaplewoodimportchainsawascs# creates a log.txt file in ./logs/example_log=cs.Chainsaw()# To log an event, we open the file firstexample_log.open()# To write to the log fileexample_log.write(success=True,message="Example Task Executed")# OR# if we define a default success or failure messageexample_log.update(success="Example success",failure="Example Failure",module="example")example.log(False)# writes default fail stateexample.log(True)# writes default pass state# we can close the file if neededexample_log.close()# and reopenexample_log.open()# to check if log file is openexample_log.is_open()# -> bool# remember to close the fileexample_log.close()
Package: maplibre
MapLibre for PythonMapLibre for Python provides Python bindings forMapLibre GL JS.It integrates seamlessly intoShiny for PythonandJupyter.Installation# Stablepipinstallmaplibre

pipinstall"maplibre[all]"# Devpipinstallgit+https://github.com/eodaGmbH/py-maplibregl@dev

pipinstall"maplibre[all] @ git+https://github.com/eodaGmbH/py-maplibregl@dev"Getting starteddockerrun--rm-p8050:8050ghcr.io/eodagmbh/py-maplibregl/vancouver-blocks:latestBasic usageAPI DocumentationExamplesDevelopmentPythonpoetryinstall

poetryrunpytest

poetryrunpytest--ignore=maplibre/ipywidget.py--doctest-modulesmaplibreJavaScriptnpminstall

npmrunprettier

npmrunbuild

npmrunbuild-ipywidget
Package: mapling
maplingMapling finds things, such as place names, in texts.  It returns a csv file with a row for each occurence. For each file, it creates an html page with the things highlighted.  Just point mapling to a folder full of documents. Mapling usestextractto extract text from many types of files, including csv, doc, docx, pdf, html, txt and many others.Usage:$ mapling texts/  --gazetteer=gazetteer/gazetteer.txt --model=de_core_news_sm --htmlTo install aspaCy model:$ python -m spacy download de_core_news_smThe first approach is to use a gazetteer. Mapling expects a txt file with a row for each place name.
Add the--gazetterargument with the path to your file. This approach lets you search for specific terms (not just places) that appear in the text.$ mapling /dir/with/txt_files --gazetteer="/home/me/gazetter.txt"The second approach uses a spaCy named entity recognition model.  Add the--modelargument with
the name of an installed spaCy model.  If your model is not installed or does not
have an ner pipeline, you'll get instructions on how to fix that. This approach will return a large range of entities and places, more than you might list yourself.  This is useful for establishing which places, people and organizations appear in a text.$ mapling /dir/with/txt_files  --model=de_core_news_mdFinally, mapling can create visualizations.  Add the--htmlargument$ mapling /dir/with/txt_files  --model=de_core_news_md --htmlTo install:pip install maplingIn the future, mapling will also work with theWord Historical Gazetteerto rectify, geocode and map your place names.
Package: maplocal
maplocalTable of ContentsmaplocalInstallationUse CaseExamplesLicenseInstallationpip install maplocalConfigurationto configuremaplocalthe following env vars must be set:MAPLOCAL_OS_FROM: str = "linux"  #  TODO make enum
MAPLOCAL_OS_TO: str = "windows"  #  TODO make enum
MAPLOCAL_FROM: ty.Optional[pathlib.PurePath] = None  # the rootdir to be removed from path
MAPLOCAL_TO: ty.Optional[pathlib.PurePath] = None  # the rootdir to be added to path
MAPLOCAL_SCRIPT_PATH: ty.Optional[pathlib.Path] = None  # script with `openpath` and `runcmd` functionsin theMAPLOCAL_SCRIPT_PATHdir is a python file that must contain functions namedopenpathandruncmd.Use CaseYou manage a cloud-hosted service that is attached to file-server storing user data.
Users have access to your service, but also separately have access to file-directory through their computers.
The way that the file-server is mounted is different for the user and for the cloud hosted service.
This provides a way to map the root directory of the users machine and the file server.
It also provides ahacky, potentially unsafe[1][1] hook that allows a locally saved script file to
inject the functionsopenfileandruncmdthat are intended to provide ways for the server
to open a file from the users machine and run a shell command on the users machine.[1]: a script file placed in a known directory allows users to inject code into the program.
Not inherently unsafe but could be used as a way to inject malicious code by bad-actors.Examplesrunning WSL, Ubuntu. Opening files saved in the Ubuntu file system with Windows Programs.running WSL, Ubuntu. Opening files on the windows files system (mounted C:\drive).Licensemaplocalis distributed under the terms of the0BSDlicense.
Package: mapmatcher
MapMatcherMapMatcher is yet another Python Package designed to map-match GPS traces onto a network.This package is built aroundAequilibraEadding new powerful resources to its ecosystem.Following on the AequilibraE ethos, however, one does not need an AequilibraE model
to use MapMatcher to map-match GPS traces to a bespoke link network.MapMatcher was previously maintained atthis repository.DocumentationMapMatcher documentation can be foundhere.CitingCase you use MapMatcher, please cite:P. Camargo, S. Hong, and V. Livshits, ‘Expanding the Uses of Truck GPS Data in Freight Modeling and Planning Activities’, Transportation Research Record, vol. 2646, no. 1, pp. 68–76, Jan. 2017,doi: 10.3141/2646-08.
Package: mapmatching
My implementation of the map matching algorithm fromthis article(Althought with some modifications). The goal is to get the streets from a gps track.This is how it looks like:The gray line is the gps trace and the colored lines describe the map-matched most-likely route in the streets for the vehicle.For reference readthe resulting article.SetupYou’ll need python 3.5+ and a redis server running. The usage of a virtual environment is recommended.Install from pypi:$pipinstallmapmatchingOr install from source:$cdmapmatching$pythonsetup.pyinstallUsageDownload data from OpenStreetMaps:$mapmatchingdownload-h$mapmatchingdownload-96.9910736083984419.441181182861328-96.84643554687519.59616470336914-ostreets.jsonAnd load it to redis, by default it loads it to database 1 instead of redis default of 0.$mapmatchingloadstreets.jsonThe two previous commands can be chained:$mapmatchingdownload-96.9910736083984419.441181182861328-96.84643554687519.59616470336914|mapmatchingloadThen run the match task with a geojson file with a single gps track. A sample track that works with the sample bounding box is contained in thedata/directory of the repository.$mapmatchingmatch-h$mapmatchingmatchdata/route.geojson-ooutput.jsonOptionally visualize it in the browser:$pipinstallgeojsonio$geojsoniooutput.json
Package: mapmod
Streamlit Demo: Uber Pickups in New York CityAStreamlitdemowritten in pure Pythonto interactively visualize Uber pickups in New York City.View the live appCheck out the live app atshare.streamlit.io/streamlit/demo-uber-nyc-pickups. This demo is hosted with Streamlit sharing - the best way to deploy, manage, and share your Streamlit apps. Get an invite at streamlit.io/sharing.Run this demo locallypip install --upgrade streamlit
streamlit run https://raw.githubusercontent.com/streamlit/demo-uber-nyc-pickups/master/streamlit_app.pyQuestions? Comments?Please ask in theStreamlit community.
Package: map-network-viz
map-network-vizDescriptionThis library contains functionality for visualizing street networks and making artistic maps with OpenStreetMap and Networkx. It works by wrapping around theosmnxlibrary to pull city network data (nodes and edges), but it is specifically designed to help end users make highly customizable, color-coded maps!Installationpython3-mpipinstallmap-network-vizExample Usagefrommap_network_vizimport*PALETTE=["#FFB7C3","#750d37","#F57A80","#F6BD60","#AAE28D","#aadaba","#27BACE","#F0F2A6"]generate_map("Portland, Oregon, USA",PALETTE)frommap_network_vizimport*PALETTE=["#FFB7C3","#750d37","#F57A80","#F6BD60","#AAE28D","#aadaba","#27BACE","#F0F2A6"]generate_map("Tokyo, Japan",PALETTE,distance_km=5000,color_code_by='length',include_legend=True,save=False)Map Gallery
Package: map-nl
map-nlmap-nlis a Python package to help you quickly createPC4maps of the Netherlands, i.e. maps based on the numerical part of Dutch postal codes. While that is already possible withoutmap-nl, this package aims to make the process a lot easier. It automatically downloads the geojson files, so all you need to provide is a dataset with two columns: One containing PC4 codes and one with a related value to plot on the map.map-nlthen usesfoliumto plot the map.For an example map created withmap-nl, seehere.Documentation-ContributingQuickstartInstallationTo installmap-nl, simply run:pipinstallmap-nlor a similar command for your dependency manager.UsageTo create a choropleth map of the average WOZ-value in the Netherlands, you could run the following:importpandasaspdfrommap_nlimportChoroplethMapNLdf=pd.read_csv("https://raw.githubusercontent.com/fpgmaas/map-nl/main/data/woz-pc4.csv")m=ChoroplethMapNL(geojson_simplify_tolerance=0.0001).plot(df,pc4_column_name="pc4",value_column_name="WOZ",legend_name="Average WOZ Value")m.save("map.html")This will download the geojson file to the.map_nldirectory, simplify the geojson file to reduce the disk size of the plot, plot the map and save it to disk.For more details, seethe documentation.Attribution & LicenseBy default, a geojson file with PC4 polygons is downloaded fromOpendatasoft.com. The file is provided by Central Bureau voor de Statistiek & Basisregistratie Kadaster and usage of this file falls under theCC BY 4.0license.Repository initiated withfpgmaas/cookiecutter-poetry.Icon created byRoundicons - Flaticon
Package: map-object
Map ObjectA python implementation of the map-obj functionInstallationpip install map_objectUsagefrommap_objectimportmapObjectdefmapper(key,value,source):return[value,ley]newObject=mapObject({'foo'='bar'},mapper);# => {bar: 'foo'}APImapObject(source, mapper)sourceType:ObjectSource object to copy properties from.mapperType:FunctionMapping function.It has signaturemapper(sourceKey, sourceValue, source)It must return a two item array:[targetKey, targetValue].LicenseMIT
Package: mapology
MapologySimple python filters generating leaflet driven apps.License: MIT|Country of origin: Switzerland|Export control classification number(ECCN): EAR99Third party dependencies are documented in the folderthird-party.DocumentationUser and developerdocumentation of mapology.Bug TrackerAny feature requests or bug reports shall go to thetodos of mapology.Primary Source repositoryThe main source ofmapologyis on a mountain in central Switzerland.
We use distributed version control (git).
There is no central hub.
Every clone can become a new source for the benefit of all.
The preferred public clones ofmapologyare:on codeberg- a democratic community-driven, non-profit software development platform operated by Codeberg e.V.at sourcehut- a collection of tools useful for software development.ContributionsPlease do not submit "pull requests" (I found no way to disable that "feature" on GitHub).
If you like to share small changes under the repositories license please kindly do so by sending a patchset.
You can either send such a patchset per email usinggit send-emailor
if you are a sourcehut user by selecting "Prepare a patchset" on the summary page of your fork atsourcehut.StatusExperimental.Note: The name of the default branch isdefault.
Package: mapp4py
MAPP is a parallel atomistic simulation package written entirely in C++, it is presented in form of a [python](http://www.python.org) package in order to facilitate usage. Some of the main features of MAPP are:Molecular Dynamics (MD)Diffusive Molecular Dynamics ([DMD](https://doi.org/10.1103/PhysRevB.84.054103)) canonical ensembleDMD isothermoal-isostress ensembleSophisticated energy minimization (CG and l-BFGS) and line search (brent, golden section and back track) algorithmsParallel Grand Canonical Monte Carlo (pGCMC) for pair and many body potentials such as EAMFor documentation and usage please visithttp://www.mit.edu/~sinam/mapp
Package: mappable
Interactive Data annotation, visualisation and recommendation.Installationmappable requires Python 3.6.1 or later.
The preferred way to install mappable is viapip. You can install it with:pip install mappableSetting up a virtual environmentCondacan be used set up a virtual environment with the
version of Python required for mappable.  If you already have a Python 3
environment you want to use, you can skip to the 'installing via pip' section.Download and install Conda.Create a Conda environment with Python 3.7 (3.6 or 3.8 would work as well):conda create -n mappable python=3.7Activate the Conda environment. You will need to activate the Conda environment in each terminal in which you want to use mappable:conda activate mappablePython DevelopmentThe Python service and Python cli are formatted usingblackandflake8. Currently this is run in a local environment
using the app'srequirements.txt. To run the linters:black api/
flake8 api/Development PrerequisitesMake sure that you have the latest version ofDocker 🐳installed on your local machine.To start a version of the application locally for development purposes, run
this command:~ docker-compose up --buildThis process launches 2 services, theuiandapi. You'll see output
from each.It might take a minute or two for the application to start, particularly
if it's the first time you've executed this command. Be patience and wait
for a clear message indicating that all of the required services have
started up.As you make changes the running application will be automatically updated.
Simply refresh your browser to see them.Sometimes one portion of your application will crash due to errors in the code.
When this occurs resolve the related issue and re-rundocker-compose up --buildto start things back up.DeploymentMappable is designed as a python package, with the UI packagedinsideit. The package is built and pushed to Pypi when a git tag is pushed. This all happens in the.github/workflows/publish.ymlin this repository.The only difference to a standard package being built is that we first build the UI and copy it inside theapi/mappable/staticdirectory, which is where the mappable server looks to find the static UI files. Currently, this is done via thebuild_ui.shscript, which builds the UI inside a docker container and copies the result out, to make it easily replicable.
Package: map-parallel
A drop-in replacement of map/starmap but in parallel with different backends.Free software: BSD 3-Clause LicenseInstallationpip install map-parallelYou can also install the in-development version with:pip install https://github.com/ickc/python-map_parallel/archive/master.zipDocumentationhttps://python-map_parallel.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1 (2020-11-20)First release on PyPI.