No project description provided
Project description
Dopt Users Python Library
Installation
Add this dependency to your project's build file:
pip install dopt-users-python-client
# or
poetry add dopt-users-python-client
Usage
from dopt.client import DoptApi
client = DoptApi(api_key="YOUR_API_KEY")
client.users.identify_user(
identifier="todd_solondz",
properties={
"first_name": "todd",
"last_name": "solondz",
},
)
Async Client
import asyncio
from dopt.client import AsyncDoptApi
async_client = AsyncDoptApi(api_key="users-usersKey_Mw==")
async def identify_user() -> None:
client.users.identify_user(
identifier="todd_solondz",
properties={
"first_name": "todd",
"last_name": "solondz",
},
)
asyncio.run(identify_user())
Contributing
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
On the other hand, contributions to the README are always very welcome!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dopt_users_python_client-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 319eb150b8f441a6305706dbe8967d0f65de9e9f69c2cf0d2814c82b5bd2be22 |
|
MD5 | 9816d5a80974f7c67dede8be024dd690 |
|
BLAKE2b-256 | 44c0d7ef345bc8d2486d7460ab3e16b443caff66ee2b3e45ac916e40100ff9d4 |
Close
Hashes for dopt_users_python_client-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | daf50af205cbcc09bc8dfce623d1df94113f22d5f73572a37c41640f9d1f2fd8 |
|
MD5 | b68b0171d221dea3715a65c6f566ec5a |
|
BLAKE2b-256 | fc869ffb0ffdffa07d017ecf37aa226d9f1081c732a46cd944b53aacec5d5123 |