Skip to content

Commit 8e547d0

Browse files
Initial Commit
0 parents  commit 8e547d0

File tree

13 files changed

+492
-0
lines changed

13 files changed

+492
-0
lines changed

.gitignore

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
## OS X
2+
.DS_Store
3+
.AppleDouble
4+
.LSOverride
5+
6+
# Icon must end with two \r
7+
Icon
8+
9+
10+
# Thumbnails
11+
._*
12+
13+
# Files that might appear on external disk
14+
.Spotlight-V100
15+
.Trashes
16+
17+
# Directories potentially created on remote AFP share
18+
.AppleDB
19+
.AppleDesktop
20+
Network Trash Folder
21+
Temporary Items
22+
23+
## Python
24+
# Byte-compiled / optimized / DLL files
25+
__pycache__/
26+
*.py[cod]
27+
28+
# C extensions
29+
*.so
30+
31+
# Distribution / packaging
32+
.Python
33+
env/
34+
build/
35+
develop-eggs/
36+
dist/
37+
eggs/
38+
lib/
39+
lib64/
40+
parts/
41+
sdist/
42+
var/
43+
*.egg-info/
44+
.installed.cfg
45+
*.egg
46+
47+
# PyInstaller
48+
# Usually these files are written by a python script from a template
49+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
50+
*.manifest
51+
*.spec
52+
53+
# Installer logs
54+
pip-log.txt
55+
pip-delete-this-directory.txt
56+
57+
# Unit test / coverage reports
58+
htmlcov/
59+
.tox/
60+
.coverage
61+
.cache
62+
nosetests.xml
63+
coverage.xml
64+
65+
# Translations
66+
*.mo
67+
*.pot
68+
69+
# Django stuff:
70+
*.log
71+
72+
# Sphinx documentation
73+
docs/_build/
74+
75+
# PyBuilder
76+
target/

MANIFEST

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# file GENERATED by distutils, do NOT edit
2+
setup.py
3+
datapoint/Day.py
4+
datapoint/Element.py
5+
datapoint/Forecast.py
6+
datapoint/Manager.py
7+
datapoint/Site.py
8+
datapoint/Timestep.py
9+
datapoint/__init__.py

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# _Datapoint for Python_
2+
3+
_This is a Python module for accessing weather data via the [Met Office](http://www.metoffice.gov.uk/)'s open data API
4+
known as [Datapoint](http://www.metoffice.gov.uk/datapoint)._
5+
6+
__Disclaimer: This module is in no way part of the datapoint project/service.
7+
This module is intended to simplify the use of Datapoint for small Python projects (e.g school projects).
8+
No support for this module is provided by the Met Office and may break as the Datapoint service grows/evolves.
9+
The author will make reasonable efforts to keep it up to date and fully featured.__
10+
11+
## Project Setup
12+
13+
_How do I, as a developer, start working on the project?_
14+
15+
1. _What dependencies does it have (where are they expressed) and how do I install them?_
16+
2. _How can I see the project working before I change anything?_
17+
18+
## Deploying
19+
20+
### _How to setup the deployment environment_
21+
22+
- _Required heroku addons, packages, or chef recipes._
23+
- _Required environment variables or credentials not included in git._
24+
- _Monitoring services and logging._
25+
26+
### _How to deploy_
27+
28+
## Troubleshooting & Useful Tools
29+
30+
_Examples of common tasks_
31+
32+
> e.g.
33+
>
34+
> - How to make curl requests while authenticated via oauth.
35+
> - How to monitor background jobs.
36+
> - How to run the app through a proxy.
37+
38+
## Contributing changes
39+
40+
- _Internal git workflow_
41+
- _Pull request guidelines_
42+
- _Tracker project_
43+
- _Google group_
44+
- _irc channel_
45+
- _"Please open github issues"_
46+
47+
## License

datapoint/Day.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Day(object):
2+
def __init__(self, api_key=""):
3+
self.api_key = api_key
4+
5+
self.date = None
6+
self.timesteps = []

datapoint/Element.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Element(object):
2+
def __init__(self, id=None, value=None, units=None):
3+
4+
self.id = id
5+
self.value = value
6+
self.units = units
7+
8+
# For elements whichcan also have a text value
9+
self.text = None

datapoint/Forecast.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class Forecast(object):
2+
def __init__(self, api_key=""):
3+
self.api_key = api_key
4+
5+
self.data_date = None
6+
self.continent = None
7+
self.country = None
8+
self.name = None
9+
self.longitude = None
10+
self.latitude = None
11+
self.id = None
12+
self.elevation = None
13+
self.days = []
14+

0 commit comments

Comments
 (0)