Skip to main content

Python SDK

Discover rich information on people and companies

SDK Installation

pip install structure_py

Authentication

You'll need to authenticate your requests to access any of the endpoints in the Structure API. In this guide, we'll look at how authentication works. Structure offers authentication for your API requests with a token.

OAuth2 with bearer token

Authentication with the Structure API is using OAuth2. When establishing a connection using OAuth2, you will need your access token — you will find it in the Structure dashboard under API settings.

SDK Example Usage

import sdk
from sdk.models import operations

s = sdk.SDK(
    security=shared.Security(
        bearer_auth="",
    ),
)

req = operations.EnrichCompanyRequest(
    id='89bd9d8d-69a6-474e-8f46-7cc8796ed151',
)

res = s.companies.enrich(req)

if res.body is not None:
    # handle response

Available Resources and Operations

accounts

companies

people

user

  • login - Login user
  • me - Show current user

Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Contributions

While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !

SDK Created by Speakeasy

Metadata

Release files for structure-py 0.18.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for structure-py 0.18.1
File Size Uploaded
structure_py-0.18.1.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for structure-py 0.18.1
File Interpreter ABI Platform
structure_py-0.18.1-py3-none-any.whl Python 3 none any Details

Total release size: 41.7 kB

Release files / structure_py-0.18.1.tar.gz

Download URL structure_py-0.18.1.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3592c3e9d19ceef93ed3c1f550d22c4de60150631edc26aa407577a0b858b864
BLAKE2b-256 checksum
How to use checksums
33ccc2995aa68ea491151c7c0dfc7f75e84fecaff412d580193d775108391f54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / structure_py-0.18.1-py3-none-any.whl

Download URL structure_py-0.18.1-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0823d611a9cbe8a14605290a10e49f0d08978682ba9e08e0359acbb01a74f29
BLAKE2b-256 checksum
How to use checksums
21649df328fbd24e715916e99b03593da6e1fc77c69839becadede1709e60f65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.18.1 This release

2 release files

0.18.0

2 release files

0.14.1

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.4

1 release file

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page