Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 1e820f7

Browse files
author
Samuel Hassine
committed
Enhance the Python client with new methods for connectors
1 parent fef1299 commit 1e820f7

File tree

7 files changed

+581
-56
lines changed

7 files changed

+581
-56
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ build
55
dist
66
pycti.egg-info
77
logs
8+
test.py

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
# OpenCTI - Official Python client
1+
# OpenCTI client for Python
22

3-
The official OpenCTI Python client helps developers to use the OpenCTI API by providing a lot of easy to use methods and utils.
3+
[![Website](https://img.shields.io/badge/website-opencti.io-blue.svg)](https://www.opencti.io)
4+
[![CircleCI](https://circleci.com/gh/OpenCTI-Platform/client-python.svg?style=shield)](https://circleci.com/gh/OpenCTI-Platform/client-python/tree/master)
5+
[![GitHub release](https://img.shields.io/github/release/OpenCTI-Platform/client-python.svg)](https://github.com/OpenCTI-Platform/client-python/releases/latest)
6+
[![Slack Status](https://slack.luatix.org/badge.svg)](https://slack.luatix.org)
7+
8+
The official OpenCTI Python client helps developers to use the OpenCTI API by providing easy to use methods and utils.
49

510
## Python client
611

@@ -10,8 +15,14 @@ $ pip3 install pycti
1015

1116
## Documentation
1217

13-
*TODO*
18+
### Client usage
19+
20+
To learn about how to use the OpenCTI Python client and read some examples and cases, refer to [the client documentation](http://xxxxxxx).
21+
22+
### API reference
23+
24+
To learn about the methods available for executing queries and retrieving their answers using the OpenCTI Python client, refer to [the client API Reference](http://xxxxx).
1425

1526
## About
1627

17-
OpenCTI is a product powered by the collaboration of the [Luatix](https://www.luatix.org) non-profit organization, the [French national cybersecurity agency (ANSSI)](https://ssi.gouv.fr) and the [CERT-EU](https://cert.europa.eu).
28+
OpenCTI is a product powered by the collaboration of the [French national cybersecurity agency (ANSSI)](https://ssi.gouv.fr), the [CERT-EU](https://cert.europa.eu) and the [Luatix](https://www.luatix.org) non-profit organization.

examples/stix2/import.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
import yaml
55

6-
from python.pycti.opencti import OpenCTI
6+
from pycti.opencti import OpenCTI
77

88
# Load configuration
99
config = yaml.load(open(os.path.dirname(__file__) + '/config.yml'))
@@ -15,4 +15,4 @@
1515
opencti = OpenCTI(config['opencti']['api_url'], config['opencti']['api_key'], config['opencti']['log_file'], config['opencti']['verbose'])
1616

1717
# Import the bundle
18-
opencti.stix2_import_bundle_from_file(file_to_import)
18+
opencti.stix2_import_bundle_from_file(file_to_import, False)

0 commit comments

Comments
 (0)