altissimo-clinicaltrials
This API is made available to provide users meta data, statistics, and the most recent version of the clinical trials available on ClinicalTrials.gov.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 2.0.5
- Package version: 2.0.5
- Generator version: 7.26.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.10+
Packaging uses standard [project] metadata and [dependency-groups] (PEP 621/735).
Install the package with python -m pip install .; install development dependencies
with Poetry 2.2 or newer using poetry install, or pip 25.1 or newer using
python -m pip install --group dev. The latter installs the group, not the package.
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/altissimo-hq/clinicaltrials-python.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/altissimo-hq/clinicaltrials-python.git)
Then import the package:
import clinicaltrials
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import clinicaltrials
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import clinicaltrials
from clinicaltrials.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://clinicaltrials.gov/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = clinicaltrials.Configuration(
host = "https://clinicaltrials.gov/api/v2"
)
# Enter a context with an instance of the API client
with clinicaltrials.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = clinicaltrials.StatsApi(api_client)
types = [] # List[FieldStatsType] | Filter by field types (optional) (default to [])
fields = ['[\"Phase\"]'] # List[str] | Filter by piece names or field paths of leaf fields. See [Data Structure](/data-api/about-api/study-data-structure) for the available values. If specified, must be non-empty comma- or pipe-separated list of fields to return. (optional)
try:
# Field Values
api_response = api_instance.field_values_stats(types=types, fields=fields)
print("The response of StatsApi->field_values_stats:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling StatsApi->field_values_stats: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://clinicaltrials.gov/api/v2
| Class | Method | HTTP request | Description |
|---|---|---|---|
| StatsApi | field_values_stats | GET /stats/field/values | Field Values |
| StatsApi | list_field_sizes_stats | GET /stats/field/sizes | List Field Sizes |
| StatsApi | size_stats | GET /stats/size | Study Sizes |
| StudiesApi | enums | GET /studies/enums | Enums |
| StudiesApi | fetch_study | GET /studies/{nctId} | Single Study |
| StudiesApi | list_studies | GET /studies | Studies |
| StudiesApi | search_areas | GET /studies/search-areas | Search Areas |
| StudiesApi | studies_metadata | GET /studies/metadata | Data Model Fields |
| VersionApi | version | GET /version | Version |
Documentation For Models
- AdverseEvent
- AdverseEventsModule
- AgencyClass
- AgreementRestrictionType
- AnalysisDispersionType
- AnnotationModule
- AnnotationSection
- ArmGroup
- ArmGroupType
- ArmsInterventionsModule
- AvailIpd
- BaselineCharacteristicsModule
- BaselineMeasure
- BioSpec
- BioSpecRetention
- BooleanStats
- BrowseBranch
- BrowseLeaf
- BrowseLeafRelevance
- BrowseModule
- CertainAgreement
- ConditionsModule
- ConfidenceIntervalNumSides
- Contact
- ContactRole
- ContactsLocationsModule
- DateStats
- DateStruct
- DateType
- Denom
- DenomCount
- DerivedSection
- DescriptionModule
- DesignAllocation
- DesignInfo
- DesignMasking
- DesignModule
- DesignTimePerspective
- DistItem
- DocumentSection
- DropWithdraw
- EligibilityModule
- EnrollmentInfo
- EnrollmentType
- EnumInfo
- EnumItem
- EnumStats
- EventAssessment
- EventGroup
- EventStats
- ExpandedAccessInfo
- ExpandedAccessStatus
- ExpandedAccessTypes
- FieldNode
- FieldStatsType
- FieldValuesStats
- FirstMcpInfo
- FlowGroup
- FlowMilestone
- FlowPeriod
- FlowStats
- GeoPoint
- GzipStats
- IdentificationModule
- IntegerStats
- Intervention
- InterventionType
- InterventionalAssignment
- IpdSharing
- IpdSharingInfoType
- IpdSharingStatementModule
- LargeDoc
- LargeDocumentModule
- LimitationsAndCaveats
- ListSize
- ListSizes
- Location
- LongestString
- MaskingBlock
- MeasureAnalysis
- MeasureCategory
- MeasureClass
- MeasureDispersionType
- MeasureGroup
- MeasureParam
- Measurement
- Mesh
- MiscInfoModule
- MoreInfoModule
- NonInferiorityType
- NumberStats
- ObservationalModel
- Official
- OfficialRole
- OrgStudyIdInfo
- OrgStudyIdType
- Organization
- Outcome
- OutcomeMeasure
- OutcomeMeasureType
- OutcomeMeasuresModule
- OutcomesModule
- OversightModule
- PagedStudies
- PartialDateStruct
- ParticipantFlowModule
- Phase
- PointOfContact
- PrimaryPurpose
- ProtocolSection
- RecruitmentStatus
- Reference
- ReferenceType
- ReferencesModule
- ReportingStatus
- ResponsibleParty
- ResponsiblePartyType
- ResultsSection
- Retraction
- SamplingMethod
- SearchArea
- SearchDocument
- SearchPart
- SecondaryIdInfo
- SecondaryIdType
- SeeAlsoLink
- Sex
- Sponsor
- SponsorCollaboratorsModule
- StandardAge
- Status
- StatusModule
- StringStats
- Study
- StudySize
- StudyType
- SubmissionInfo
- SubmissionTracking
- UnpostedAnnotation
- UnpostedEvent
- UnpostedEventType
- ValueCount
- Version
- ViolationAnnotation
- ViolationEvent
- ViolationEventType
- WebLink
- WhoMasked
Documentation For Authorization
Endpoints do not require authorization.
Author
Metadata
Release files for altissimo-clinicaltrials 2.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| altissimo_clinicaltrials-2.0.5.tar.gz | 147.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| altissimo_clinicaltrials-2.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 375.1 kB
Release files / altissimo_clinicaltrials-2.0.5.tar.gz
| Download URL | altissimo_clinicaltrials-2.0.5.tar.gz |
|---|---|
| Size | 147.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78393b26330654dfb8e66c0f5cde52d6b7a08d119f606d1e90b9fe46e874e1b7
|
|
BLAKE2b-256 checksum How to use checksums |
07650e360d0f3efdf59af140e926b2a230539ca05a09248d7948b41cad7f48d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / altissimo_clinicaltrials-2.0.5-py3-none-any.whl
| Download URL | altissimo_clinicaltrials-2.0.5-py3-none-any.whl |
|---|---|
| Size | 227.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d469152c676aa56433d35694008ce5e43091e910e8270e48d0dd75b7b407d4b
|
|
BLAKE2b-256 checksum How to use checksums |
3b85d2744527294e4363bb317e64e1ad5bf32f1c36d0ac63baea3baf5bdb8241
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for altissimo-clinicaltrials 2.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for altissimo_clinicaltrials-2.0.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.