@dopt/blocks-python-client
Advanced tools
Comparing version 1.0.0 to 1.0.8
{ | ||
"name": "@dopt/blocks-python-client", | ||
"version": "1.0.0", | ||
"version": "1.0.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -11,3 +11,3 @@ # Dopt Blocks Python Library | ||
```bash | ||
pip install dopt-blocks-python-client | ||
pip install dopt-blocks-python-client | ||
# or | ||
@@ -23,9 +23,23 @@ poetry add dopt-blocks-python-client | ||
client = DoptApi(api_key="YOUR_API_KEY) | ||
response = client.find_blocks( | ||
uid="xqC0wpZgoaYXbAPk8W0sk", | ||
user_identifier="example-user-idenitifer", | ||
version=3 | ||
); | ||
print(response) | ||
# Fetch a flow from dopt, including its blocks. The first fetch of | ||
# this (flow.sid, flow.version) tuple will initialize the flow for | ||
# the `user_identifier` | ||
flow = client.flows.get_flow( | ||
sid="example-flow", | ||
version=1, | ||
include="block", | ||
user_identifier="joe_mckenney", | ||
group_identifier=None, | ||
) | ||
print(flow) | ||
# Fetch a block for some previously initialized flow | ||
block = client.blocks.get_block( | ||
uid="9sKe7gx4HZj_VI7oxfVD3", version=1, user_identifier="joe_mckenney" | ||
) | ||
print(block) | ||
``` | ||
@@ -41,11 +55,13 @@ | ||
async def get_blocks() -> None: | ||
response = async_client.find_blocks( | ||
uid="xqC0wpZgoaYXbAPk8W0sk", | ||
user_identifier="example-user-idenitifer", | ||
version=3 | ||
async def get_flow() -> None: | ||
response = async_client.flows.get_flow( | ||
sid="example-flow", | ||
version=1, | ||
include="block", | ||
user_identifier="joe_mckenney", | ||
group_identifier=None, | ||
); | ||
print(response) | ||
asyncio.run(get_blocks()) | ||
asyncio.run(get_flow()) | ||
``` | ||
@@ -52,0 +68,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
3014
71
0
2