Python wrapper for the Assembla API
Project description
===========
Assembla: Python wrapper for API
===========
An easy to use wrapper around the Assembla API which allows you to retrieve
Spaces, Milestones, Tickets and Users.
Typical usage::
import assembla
API = assembla.API(auth=('Username', 'Password',))
# Retrieve your available spaces
spaces = API.spaces()
# Select a specific space
space = filter(
lambda space: space.name=='ASO',
spaces
)[0]
# Objects returned possess all the attributes available through the API.
# For example, we can output the space's name
print(space.name)
# Retrieve the space's milestones, tickets and users
milestones = space.milestones()
tickets = space.tickets()
users = space.users()
# Select a specific milestone
milestone = filter(
lambda milestone: milestone.title=='Release Candidate 1',
milestones
)[0]
# Retrieve and output the milestone's tickets
for ticket in milestone.tickets():
print(ticket.number, ticket.summary)
# Select a specific user
user = filter(
lambda user: user.login_name=='John Smith',
users
)[0]
# Retrieve and output the user's tickets
for ticket in user.tickets():
print(ticket.number, ticket.summary)
Source: https://github.com/markfinger/assembla
API Reference: http://www.assembla.com/spaces/breakoutdocs/wiki/Assembla_REST_API
Assembla: Python wrapper for API
===========
An easy to use wrapper around the Assembla API which allows you to retrieve
Spaces, Milestones, Tickets and Users.
Typical usage::
import assembla
API = assembla.API(auth=('Username', 'Password',))
# Retrieve your available spaces
spaces = API.spaces()
# Select a specific space
space = filter(
lambda space: space.name=='ASO',
spaces
)[0]
# Objects returned possess all the attributes available through the API.
# For example, we can output the space's name
print(space.name)
# Retrieve the space's milestones, tickets and users
milestones = space.milestones()
tickets = space.tickets()
users = space.users()
# Select a specific milestone
milestone = filter(
lambda milestone: milestone.title=='Release Candidate 1',
milestones
)[0]
# Retrieve and output the milestone's tickets
for ticket in milestone.tickets():
print(ticket.number, ticket.summary)
# Select a specific user
user = filter(
lambda user: user.login_name=='John Smith',
users
)[0]
# Retrieve and output the user's tickets
for ticket in user.tickets():
print(ticket.number, ticket.summary)
Source: https://github.com/markfinger/assembla
API Reference: http://www.assembla.com/spaces/breakoutdocs/wiki/Assembla_REST_API
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
assembla-1.0.2.tar.gz
(7.7 kB
view details)
File details
Details for the file assembla-1.0.2.tar.gz
.
File metadata
- Download URL: assembla-1.0.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d63dac69fd29b5c66e090d343232a6a4215b26c0abd964e39416efdfc63188e |
|
MD5 | 553d70cc011fe98d9e8c2ac2a20cb787 |
|
BLAKE2b-256 | 88c8a4de4da583cdbea10cfd42261c6185d1f44592950daf6a04ab81a4778374 |