Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankyrumple committed Jun 10, 2019
1 parent 303e2ac commit dc17dfb
Show file tree
Hide file tree
Showing 160 changed files with 45,207 additions and 24 deletions.
1 change: 1 addition & 0 deletions modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ PyMySQL
tempfile
re
shutil
pycanvas
1 change: 1 addition & 0 deletions venv/Lib/site-packages/pycanvas-0.2.6.dist-info/INSTALLER
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip
21 changes: 21 additions & 0 deletions venv/Lib/site-packages/pycanvas-0.2.6.dist-info/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 PGower

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
23 changes: 23 additions & 0 deletions venv/Lib/site-packages/pycanvas-0.2.6.dist-info/METADATA
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Metadata-Version: 2.1
Name: pycanvas
Version: 0.2.6
Summary: Client library for the Instructure Canvas REST api.
Home-page: https://github.com/PGower/PyCanvas
Author: Paul Gower
Author-email: [email protected]
License: BSD
Download-URL: https://github.com/PGower/PyCanvas/releases
Keywords: canvas,instructure
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Programming Language :: Python
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: requests

A client library for accessing the Instructure Canvas rest library. Mostly generated by the swagger-codegen-cli tool.


290 changes: 290 additions & 0 deletions venv/Lib/site-packages/pycanvas-0.2.6.dist-info/RECORD

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions venv/Lib/site-packages/pycanvas-0.2.6.dist-info/WHEEL
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Wheel-Version: 1.0
Generator: bdist_wheel (0.33.1)
Root-Is-Purelib: true
Tag: cp27-none-any

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pycanvas
6 changes: 6 additions & 0 deletions venv/Lib/site-packages/pycanvas/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Given a version number MAJOR.MINOR.PATCH, increment the:

# MAJOR version when you make incompatible API changes,
# MINOR version when you add functionality in a backwards-compatible manner, and
# PATCH version when you make backwards-compatible bug fixes.
__version__ = '0.2.6'
Empty file.
53 changes: 53 additions & 0 deletions venv/Lib/site-packages/pycanvas/apis/account_domain_lookups.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
"""AccountDomainLookups API Version 1.0.
This API client was generated using a template. Make sure this code is valid before using it.
"""
import logging
from datetime import date, datetime
from base import BaseCanvasAPI



class AccountDomainLookupsAPI(BaseCanvasAPI):
"""AccountDomainLookups API Version 1.0."""

def __init__(self, *args, **kwargs):
"""Init method for AccountDomainLookupsAPI."""
super(AccountDomainLookupsAPI, self).__init__(*args, **kwargs)
self.logger = logging.getLogger("pycanvas.AccountDomainLookupsAPI")

def search_account_domains(self, domain=None, latitude=None, longitude=None, name=None):
"""
Search account domains.
Returns a list of up to 5 matching account domains
Partial match on name / domain are supported
"""
path = {}
data = {}
params = {}

# OPTIONAL - name
"""campus name"""
if name is not None:
params["name"] = name

# OPTIONAL - domain
"""no description"""
if domain is not None:
params["domain"] = domain

# OPTIONAL - latitude
"""no description"""
if latitude is not None:
params["latitude"] = latitude

# OPTIONAL - longitude
"""no description"""
if longitude is not None:
params["longitude"] = longitude

self.logger.debug("GET /api/v1/accounts/search with query params: {params} and form data: {data}".format(params=params, data=data, **path))
return self.generic_request("GET", "/api/v1/accounts/search".format(**path), data=data, params=params, no_data=True)

Loading

0 comments on commit dc17dfb

Please sign in to comment.