Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A Python 3 library built on the Mapillary API v4 to facilitate retrieving and working with Mapillary data
Mapillary's official Python SDK for GeoSpatial Data
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
·
See Documentation
Mapillary's Python SDK provides an easy mechanism for accessing and retrieving information from Mapillary's web application.
For more information, please visit Mapillary and Mapillary's Blog.
To get started, simply install mapillary
by running,
pip install mapillary
A quick demo,
"""
Getting image coordinates from a nearby set of coordinates
"""
# Importing mapillary
import mapillary.interface as mly
# JSON import
import json
# Get image points close to in the given coordinates
data = mly.get_image_close_to(longitude=31, latitude=30).to_dict()
# Save the data as JSON
file_name = "get_image_close_to_1.json"
with open(file_name, mode="w") as f:
json.dump(data, f, indent=4)
You can check out all the implemented functionality from the demo.
Or you can check out the documentation!
To run the formatter black
, and the linter flake8
, run,
flake8 mapillary & black mapillary
Or, if you are on Linux, you can simply run,
make style
This runs the style
policy from the Makefile
.
Aliases for setting up the environment have been provided in Makefile
to reduce burden of replication.
The steps to execute are, in order of running them,
make setup-dev
: Install developer dependenciesmake build
: Build the packagemake local-install
: Install package locally in the dev environmentTo use the new package installed locally, first use pipenv
to change into the environment that the package was installed into by running,
pipenv shell
Then run,
python # assuming running python opens the Python3 shell
Then import and use as required,
# import package here
import mapillary.interface as mly
# more code to follow here
If you get messed up dependencies, feel free to delete the Pipfile.lock
file with rm Pipfile.lock
, then start again with the first step in Dev Setup.
If you ever need to start with a clean build, you can always run make clean
which will clean the dist
directory, then you can simply start again from the second step in Dev Setup.
If you upgrade any package in Pipfile
, be sure to run pipenv install
to update the Pipfile.lock
as well.
In debian systems, sudo apt install geos
.
In arch based systems, sudo pacman -S geos
.
We welcome contributions! See CONTRIBUTING for details on how to get started, and our code of conduct.
FAQs
A Python 3 library built on the Mapillary API v4 to facilitate retrieving and working with Mapillary data
We found that mapillary demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.