KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
wrapi
★ 12
Open GitHub ↗
Wrike Api Client
Download README (.md)
Explore Similar Repositories
esx_policejob
:
Police Job for ESX Servers. Based of the esx_policejob of ESX_Framework and esx_sheriffjob of CptSpeedy.
oak-mysql-restapi
:
A Rest API using Oak Deno Framework and mysql
kuso-subdomain-adder
:
A super-easy kuso subdomain utility
vueye-phone-input
:
phone number input built for Vue.js 3
OpenRGB
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
wrapi
?
Download (.md)
### Requirements: * Python 3.7+ ### Examples of usage: #### Sync client: ```python from typing import List from wrapi.api import query from wrapi.auth import WrikePermanentTokenAuth from wrapi.client import client from wrapi.endpoints import folders from wrapi.entities.folders import Folder from wrapi.types_.inputs import CustomField, Project def main() -> None: with client(WrikePermanentTokenAuth("your-auth-token")) as cl: create_folder = query( cl, folders.CreateFolder( folder_id="12523623", title="New Field", custom_fields=(CustomField(id="123456", value="1avagas"),), project=Project(custom_status_id="12312415"), ), ) folder = create_folder.as_model(List[Folder])[0] update_folder = query(cl, folders.ModifyFolder(folder_id=folder.id, add_parents=("123456", ))) update_folder.ignored() if __name__ == "__main__": main() ``` #### Async client: ```python from typing import List from asyncio import run from wrapi.api import query from wrapi.auth import WrikePermanentTokenAuth from wrapi.client import async_client from wrapi.endpoints import folders from wrapi.entities.folders import Folder from wrapi.types_.inputs import CustomField, Project async def main() -> None: async with async_client(WrikePermanentTokenAuth("your-auth-token")) as cl: create_folder = query( cl, folders.CreateFolder( folder_id="12523623", title="New Field", custom_fields=(CustomField(id="123456", value="1avagas"),), project=Project(custom_status_id="12312415"), ), ) folder = (await create_folder.as_model(List[Folder]))[0] update_folder = query(cl, folders.ModifyFolder(folder_id=folder.id, add_parents=("123456", ))) await update_folder.ignored() if __name__ == "__main__": run(main()) ``` Issues: see the [list](https://github.com/junqed/wrapi/issues) in the github repo. This library has nothing to do with Wrike LLC and made at my free time as experiment to try httpx and pydantic in action.