Skip to content

Commit 07947da

Browse files
authored
Merge pull request #130 from mapillary/Rubix982/Docusaurus-Release
[Documentation] Rubix982/'Docusaurus Release', Base PR for documentation to be published
2 parents 49123e4 + 984a61b commit 07947da

File tree

64 files changed

+5559
-6060
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+5559
-6060
lines changed

README.md

Lines changed: 155 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,198 @@
11
# Mapillary Python SDK
22

3-
![Mapillary Python SDK Logo](./assets/img/logo/PNG/MapillaryPythonSDK-Logo.png)
3+
[![Contributors][contributors-shield]][contributors-url]
4+
[![Forks][forks-shield]][forks-url]
5+
[![Stargazers][stars-shield]][stars-url]
6+
[![Issues][issues-shield]][issues-url]
7+
[![MIT License][license-shield]][license-url]
8+
9+
<br />
10+
11+
[![LinkedIn][linkedin-shield]][linkedin-url]
12+
[![Email][email-shield]][email-url]
13+
[![Twitter][twitter-shield]][twitter-url]
14+
[![Facebook][facebook-shield]][facebook-url]
15+
16+
[![](./assets/img/logo/PNG/MapillaryPythonSDK-Logo.png)](https://github.com/mapillary/mapillary-python-sdk/)
17+
18+
<!-- PROJECT LOGO -->
19+
<div>
20+
<p align="center">
21+
Mapillary's official Python SDK for GeoSpatial Data
22+
<br />
23+
<a href="https://mapillary.github.io/mapillary-python-sdk/"><strong>Explore the docs »</strong></a>
24+
<br />
25+
<br />
26+
<a href="https://colab.research.google.com/drive/1BPWMP5k7QhXFB6nlWckHC1r54vIR0v2L?usp=sharing">View Demo</a>
27+
·
28+
<a href="https://github.com/mapillary/mapillary-python-sdk/issues/new?assignees=&labels=bug&template=bug_report.md&title=Bug+Report">Report Bug</a>
29+
·
30+
<a href="https://github.com/mapillary/mapillary-python-sdk/issues/new?assignees=&labels=feature&template=feature_request.md&title=Feature">Request Feature</a>
31+
·
32+
<a href="https://mapillary.github.io/mapillary-python-sdk/">See Documentation</a>
33+
</p>
34+
</div>
35+
36+
<!-- TABLE OF CONTENTS -->
37+
## Table Of Contents
38+
39+
- [Mapillary Python SDK](#mapillary-python-sdk)
40+
- [Table Of Contents](#table-of-contents)
41+
- [About](#about)
42+
- [Getting Started](#getting-started)
43+
- [Formatting/Linting](#formattinglinting)
44+
- [Building Package](#building-package)
45+
- [Contributing](#contributing)
46+
- [Links](#links)
47+
- [Mapillary](#mapillary)
48+
- [Legal](#legal)
49+
- [Acknowledgements](#acknowledgements)
50+
51+
# About
52+
53+
Mapillary's Python SDK provides an easy mechanism for accessing and retrieving information from Mapillary's web application.
54+
55+
For more information, please visit [Mapillary](https://www.mapillary.com) and [Mapillary's Blog](https://blog.mapillary.com).
56+
57+
# Getting Started
58+
59+
To get started, simply install `mapillary `by running,
460

5-
## Internal Resources
61+
```bash
62+
pip install mapillary
63+
```
664

7-
## Relevant Links
65+
A quick demo,
866

9-
- [Python naming conventions](https://pythonguides.com/python-naming-conventions/)
10-
- [Building a Python Open Source Project](https://towardsdatascience.com/build-your-first-open-source-python-project-53471c9942a7)
11-
- [Example geospatial Python library, which we can reference for inspiration](https://github.com/gboeing/osmnx)
12-
- [Mapillary blog on API v4 examples](https://blog.mapillary.com/update/2021/06/23/getting-started-with-the-new-mapillary-api-v4.html)
13-
- [Facebook Open Source Legal Terms](https://opensource.fb.com/legal/terms/)
14-
- [Facebook Open Source Privacy Policy](https://opensource.fb.com/legal/privacy/)
67+
```python
68+
"""
69+
Getting image coordinates from a nearby set of coordinates
70+
"""
1571

16-
## mapillary-python-sdk -External Documentation
72+
# Importing mapillary
73+
import mapillary.interface as mly
1774

18-
In this section, we keep a draft of the documentation.
75+
# JSON import
76+
import json
1977

20-
> here we should give a paragraph describing the library and what its capabilities are
78+
# Get image points close to in the given coordinates
79+
data = mly.get_image_close_to(longitude=31, latitude=30).to_dict()
2180

22-
## Getting Started
23-
24-
How do I install the Mapillary Python SDK? See the installation instructions ***link to readthedocs.io***.
81+
# Save the data as JSON
82+
file_name = "get_image_close_to_1.json"
83+
with open(file_name, mode="w") as f:
84+
json.dump(data, f, indent=4)
85+
```
2586

26-
How do I use the Mapillary Python SDK? See the usage examples and tutorials in the examples repo ***link to examples possibly***.
87+
You can check out all the implemented functionality from the [demo](https://colab.research.google.com/drive/1BPWMP5k7QhXFB6nlWckHC1r54vIR0v2L?usp=sharing).
2788

28-
How does this function work? Check out the documentation.
89+
Or you can check out the [documentation](https://mapillary.github.io/mapillary-python-sdk/)!
2990

30-
### Basic Start
91+
## Development
3192

32-
For installing `pipenv`, please see [here](https://pypi.org/project/pipenv/).
93+
### Formatting/Linting
3394

34-
To install packages from `Pipfile`,
95+
To run the formatter `black`, and the linter `flake8`, run,
3596

3697
```bash
37-
pipenv install
98+
flake8 mapillary & black mapillary
3899
```
39100

40-
To install a package under `packages`,
101+
Or, if you are on Linux, you can simply run,
41102

42103
```bash
43-
pipenv install [package_name]
104+
make style
44105
```
45106

46-
To install a package under `dev-packages`,
107+
This runs the `style` policy from the `Makefile`.
47108

48-
```bash
49-
pipenv install --dev [package_name]
50-
```
109+
### Building package
51110

52-
To run `python` with `pipenv`,
111+
To build the package, run,
53112

54113
```bash
55-
pipenv run python
114+
python3 setup.py sdist bdist_wheel
56115
```
57116

58-
To enter the virtual environment, run,
117+
To test out a local installation, run,
59118

60119
```bash
61-
pipenv shell
120+
pip install -e .
62121
```
63122

64-
### Formatting/Linting
123+
# Contributing
65124

66-
To run the formatter `black`, and the linter `flake8`, run,
125+
We welcome contributions! See [CONTRIBUTING](CONTRIBUTING.md) for details on how to get started, and
126+
our [code of conduct](CODE_OF_CONDUCT.md).
67127

68-
```bash
69-
flake8 mapillary & black mapillary
70-
```
128+
# Acknowledgements
71129

72-
Or, if you are on Linux, you can simply run,
130+
- [Christopher Beddow](https://github.com/cbeddow) - for leading the project
131+
- [Saif Ul Islam](https://github.com/rubix982) - for developing the SDK under MLH fellowship
132+
- [Omar Ali](https://github.com/OmarMuhammedAli) - for developing the SDK under MLH fellowship
73133

74-
```bash
75-
make style
76-
```
134+
# Links
77135

78-
This runs the `style` policy from the `Makefile`.
136+
## Mapillary
79137

80-
### Building package
138+
- [Website](https://www.mapillary.com)
139+
- [Blog](https://blog.mapillary.com)
140+
- [Web App](https://www.mapillary.com/app)
141+
- [Forum](https://forum.mapillary.com)
142+
- [API V4 - Mapillary Blog](https://blog.mapillary.com/update/2021/06/23/getting-started-with-the-new-mapillary-api-v4.html)
143+
144+
## Legal
145+
146+
- [Facebook Open Source Legal Terms](https://opensource.fb.com/legal/terms/)
147+
- [Facebook Open Source Privacy Policy](https://opensource.fb.com/legal/privacy/)
148+
149+
<!-- MARKDOWN LINKS & IMAGES -->
150+
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
151+
152+
<!-- Shields -->
153+
154+
[contributors-shield]: https://img.shields.io/github/contributors/mapillary/mapillary-python-sdk.svg?style=for-the-badge
155+
156+
[forks-shield]: https://img.shields.io/github/forks/mapillary/mapillary-python-sdk.svg?style=for-the-badge
157+
158+
[stars-shield]: https://img.shields.io/github/stars/mapillary/mapillary-python-sdk.svg?style=for-the-badge
159+
160+
[issues-shield]: https://img.shields.io/github/issues/mapillary/mapillary-python-sdk.svg?style=for-the-badge
161+
162+
[license-shield]: https://img.shields.io/github/license/mapillary/mapillary-python-sdk.svg?style=for-the-badge
163+
164+
[linkedin-shield]: https://img.shields.io/badge/LinkedIn-0A66C2.svg?style=for-the-badge&logo=linkedin&logoColor=white
165+
166+
[email-shield]: https://img.shields.io/badge/gmail-EA4335?style=for-the-badge&logo=gmail&logoColor=white
167+
168+
[twitter-shield]: https://img.shields.io/badge/twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white
169+
170+
[facebook-shield]: https://img.shields.io/badge/facebook-1877F2?style=for-the-badge&logo=facebook&logoColor=white
171+
172+
<!-- URLs -->
173+
174+
[contributors-url]: https://github.com/mapillary/mapillary-python-sdk/graphs/contributors
175+
176+
[forks-url]: https://github.com/mapillary/mapillary-python-sdk/network/members
177+
178+
[stars-url]: https://github.com/mapillary/mapillary-python-sdk/stargazers
179+
180+
[issues-url]: https://github.com/mapillary/mapillary-python-sdk/issues
181+
182+
[license-url]: https://github.com/mapillary/mapillary-python-sdk/blob/master/LICENSE.txt
183+
184+
[linkedin-url]: https://linkedin.com/in/othneildrew
185+
186+
[email-url]: mailto:[email protected]
187+
188+
[twitter-url]: https://twitter.com/mapillary
81189

82-
To build the package, run `python3 setup.py sdist bdist_wheel`. To test out a local installation, run `pip install -e .`.
190+
[facebook-url]: https://www.facebook.com/mapillary/
83191

84-
## Contributing
192+
[website-url]: https://www.mapillary.com
85193

86-
We welcome contributions! See [CONTRIBUTING](CONTRIBUTING.md) for details on how to get started, and our [code of conduct](CODE_OF_CONDUCT.md).
194+
[blogs-url]: https://blog.mapillary.com
87195

88-
## License
196+
[application-url]: https://www.mapillary.com/app
89197

90-
Mapillary-Python-SDK is MIT licensed, as found in the [LICENSE](LICENSE) file.
198+
[forum-url]: https://forum.mapillary.com

docs/docs/Table Of Contents.md

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
---
2+
sidebar position: 1
3+
---
4+
5+
<!-- src documentation master file, created by
6+
sphinx-quickstart on Fri Sep 17 21:39:39 2021.
7+
You can adapt this file completely to your liking, but it should at least
8+
contain the root `toctree` directive. -->
9+
# Welcome to the Mapillary’s Python SDK documentation!
10+
11+
# Contents:
12+
13+
14+
* mapillary package
15+
16+
17+
* Subpackages
18+
19+
20+
* mapillary.config package
21+
22+
23+
* Subpackages
24+
25+
26+
* Module contents
27+
28+
29+
* mapillary.controller package
30+
31+
32+
* Submodules
33+
34+
35+
* mapillary.controller.detection module
36+
37+
38+
* mapillary.controller.feature module
39+
40+
41+
* mapillary.controller.image module
42+
43+
44+
* mapillary.controller.save module
45+
46+
47+
* Module contents
48+
49+
50+
* mapillary.models package
51+
52+
53+
* Subpackages
54+
55+
56+
* Submodules
57+
58+
59+
* mapillary.models.client module
60+
61+
62+
* mapillary.models.exceptions module
63+
64+
65+
* mapillary.models.geojson module
66+
67+
68+
* Module contents
69+
70+
71+
* mapillary.utils package
72+
73+
74+
* Submodules
75+
76+
77+
* mapillary.utils.auth module
78+
79+
80+
* mapillary.utils.extract module
81+
82+
83+
* mapillary.utils.filter module
84+
85+
86+
* mapillary.utils.format module
87+
88+
89+
* mapillary.utils.time module
90+
91+
92+
* mapillary.utils.verify module
93+
94+
95+
* Module contents
96+
97+
98+
* Submodules
99+
100+
101+
* mapillary.interface module
102+
103+
104+
* mapillary.interface
105+
106+
107+
* Module contents
108+
109+
110+
* mapillary.__init__
111+
112+
113+
# Indices and tables
114+
115+
116+
* Index
117+
118+
119+
* Module Index
120+
121+
122+
* Search Page

0 commit comments

Comments
 (0)