New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dopt/blocks-python-client

Package Overview
Dependencies
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dopt/blocks-python-client - npm Package Compare versions

Comparing version 1.0.0 to 1.0.8

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc