projectal
A python client for the Projectal API.
Getting started
import projectal
import os
# Supply your Projectal server URL and account credentials
projectal.api_base = https://yourcompany.projectal.com/
projectal.api_username = os.environ.get('PROJECTAL_USERNAME')
projectal.api_password = os.environ.get('PROJECTAL_PASSWORD')
# Test communication with server
status = projectal.status()
# Test account credentials
projectal.login()
details = projectal.auth_details()
Changelog
1.0.3
- Fix another case of automatic JWT refresh not working
1.0.2
- Entity instances can
save()
ordelete()
on themselves - Fix broken
dict
methods (get()
andupdate()
) when called from Entity instances - Fix automatic JWT refresh only working in some cases
1.0.1
- Added
list()
function for all entities - Added search functions for all entities (match-, search, query)
- Added
Company.get_master_company()
- Fixed adding template tasks
View Source
""" A python client for the [Projectal API](https://projectal.com/docs/latest). ## Getting started ``` import projectal import os # Supply your Projectal server URL and account credentials projectal.api_base = https://yourcompany.projectal.com/ projectal.api_username = os.environ.get('PROJECTAL_USERNAME') projectal.api_password = os.environ.get('PROJECTAL_PASSWORD') # Test communication with server status = projectal.status() # Test account credentials projectal.login() details = projectal.auth_details() ``` ---- ## Changelog ### 1.0.3 - Fix another case of automatic JWT refresh not working ### 1.0.2 - Entity instances can `save()` or `delete()` on themselves - Fix broken `dict` methods (`get()` and `update()`) when called from Entity instances - Fix automatic JWT refresh only working in some cases ### 1.0.1 - Added `list()` function for all entities - Added search functions for all entities (match-, search, query) - Added `Company.get_master_company()` - Fixed adding template tasks """ import os from projectal.entities import * from .api import * api_base = os.getenv('PROJECTAL_URL') api_username = os.getenv('PROJECTAL_USERNAME') api_password = os.getenv('PROJECTAL_PASSWORD') cookies = None # The minimum version number of the Projectal instance that this # API client targets. Lower versions are not supported and will # raise an exception. MIN_PROJECTAL_VERSION = "1.7.0"
View Source
""" A python client for the [Projectal API](https://projectal.com/docs/latest). ## Getting started ``` import projectal import os # Supply your Projectal server URL and account credentials projectal.api_base = https://yourcompany.projectal.com/ projectal.api_username = os.environ.get('PROJECTAL_USERNAME') projectal.api_password = os.environ.get('PROJECTAL_PASSWORD') # Test communication with server status = projectal.status() # Test account credentials projectal.login() details = projectal.auth_details() ``` ---- ## Changelog ### 1.0.3 - Fix another case of automatic JWT refresh not working ### 1.0.2 - Entity instances can `save()` or `delete()` on themselves - Fix broken `dict` methods (`get()` and `update()`) when called from Entity instances - Fix automatic JWT refresh only working in some cases ### 1.0.1 - Added `list()` function for all entities - Added search functions for all entities (match-, search, query) - Added `Company.get_master_company()` - Fixed adding template tasks """ import os from projectal.entities import * from .api import * api_base = os.getenv('PROJECTAL_URL') api_username = os.getenv('PROJECTAL_USERNAME') api_password = os.getenv('PROJECTAL_PASSWORD') cookies = None # The minimum version number of the Projectal instance that this # API client targets. Lower versions are not supported and will # raise an exception. MIN_PROJECTAL_VERSION = "1.7.0"
A python client for the Projectal API.
Getting started
import projectal
import os
# Supply your Projectal server URL and account credentials
projectal.api_base = https://yourcompany.projectal.com/
projectal.api_username = os.environ.get('PROJECTAL_USERNAME')
projectal.api_password = os.environ.get('PROJECTAL_PASSWORD')
# Test communication with server
status = projectal.status()
# Test account credentials
projectal.login()
details = projectal.auth_details()
Changelog
1.0.3
- Fix another case of automatic JWT refresh not working
1.0.2
- Entity instances can
save()
ordelete()
on themselves - Fix broken
dict
methods (get()
andupdate()
) when called from Entity instances - Fix automatic JWT refresh only working in some cases
1.0.1
- Added
list()
function for all entities - Added search functions for all entities (match-, search, query)
- Added
Company.get_master_company()
- Fixed adding template tasks