Skip to main content

Port Ocean is a CLI tool for managing your Port projects.

Project description

Ocean

Ocean Ocean

Lint Ask DeepWiki

Ocean is an innovative solution developed by Port to seamlessly integrate various third-party systems with our developer portal product, empowering engineers to effortlessly prioritize key features and streamline the integration process.

Prerequisites

  • Python 3.11

Installation

In order to install the Ocean Framework, run the following command:

pip install "port-ocean[cli]"

Or

poetry add "port-ocean[cli]"

Run Integration

  1. source the integration venv

    . .venv/bin/activate
    
  2. Run

    ocean sail ./path/to/integration
    

Export Architecture

image

Real-Time updates Architecture

image

Integration Lifecycle

image

Folder Structure

The Ocean Integration Framework follows a specific folder structure within this mono repository. This structure ensures proper organization and easy identification of integration modules. The suggested folder structure is as follows:

port-ocean/
├── port_ocean (framework)/
│ ├── ocean.py
│ ├── core/
| └── ...
└── integrations/
│  └─── integration_name/
│     ├──── main.py
│     ├──── pyproject.toml
│     └──── Dockerfile
├── ...
└── ...
  • The framework folder contains the core logic for managing the integration lifecycle.
  • Each integration is represented by a separate folder inside the integrations directory.
  • Inside each integration folder, you'll find a main.py file that implements the core functionality of the integration for the specific third-party system.
  • The pyproject.toml file inside each integration folder lists the required dependencies for that integration.

Configuration

The Integration Framework utilizes a config.yaml file for its configuration. This file defines both the framework configuration and the integration configuration within it. Each integration is identified by its type and unique identifier, which are utilized during initialization to appropriately update Port.

Example config.yaml:

# This is an example configuration file for the integration service.
# Please copy this file to config.yaml file in the integration folder and edit it to your needs.

port:
  clientId: PORT_CLIENT_ID # Can be loaded via environment variable: PORT_CLIENT_ID
  clientSecret: PORT_CLIENT_SECRET # Can be loaded via environment variable: PORT_CLIENT_SECRET
  baseUrl: https://api.getport.io/v1
# The event listener to use for the integration service.
eventListener:
  type: KAFKA / WEBHOOK
integration:
  # The name of the integration.
  identifier: "my_integration"
  # The type of the integration.
  type: "PagerDuty"
  config:
    my_git_token: "random"
    some_other_integration_config: "Very important information"

Contributing

The reason Ocean is open source is that we aim for the Port integration library to offer numerous useful out-of-the-box integrations. We have confidence that developers and DevOps professionals who rely on Port in their everyday work will be inclined to contribute and assist in making it a comprehensive tool.

In order to learn how you can contribute to Ocean, read our contributing guide

Local Development (Framework)

  1. Clone the repository

  2. Install dependencies:

    make install
    

    Or (For installing integrations dependencies as well)

    make install/all
    
  3. source the integration venv

    . .venv/bin/activate
    

Local Development (Integration)

  1. Clone the repository

  2. For new integration run

    make new
    

    and follow the instructions

  3. Install dependencies

  4. cd DESIRED_INTEGRATION_FOLDER && make install
    
  5. source the integration venv

    . .venv/bin/activate
    
  6. Run the integration

    make run
    

    Or

    ocean sail
    

License

The Ocean Framework is open-source software licensed under the Apache 2.0 License. See the LICENSE file for more information.

Contact

For any questions or inquiries, please reach out to our team at support@getport.io

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

port_ocean-0.37.1.tar.gz (224.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

port_ocean-0.37.1-py3-none-any.whl (311.9 kB view details)

Uploaded Python 3

File details

Details for the file port_ocean-0.37.1.tar.gz.

File metadata

  • Download URL: port_ocean-0.37.1.tar.gz
  • Upload date:
  • Size: 224.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for port_ocean-0.37.1.tar.gz
Algorithm Hash digest
SHA256 acdb2b08b7c085cf825e853e25f6f1a0838b7a7a63f052561e49d5670812b64d
MD5 256cec26b4984db536af8cec7176b23f
BLAKE2b-256 5257e329599fbbf047c03c4c2ce79ceb8520652bbdee75057faf1b87f223b2e8

See more details on using hashes here.

File details

Details for the file port_ocean-0.37.1-py3-none-any.whl.

File metadata

  • Download URL: port_ocean-0.37.1-py3-none-any.whl
  • Upload date:
  • Size: 311.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for port_ocean-0.37.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f3e30ca9275e411148b885f849df8ec6082b7eed351c46f4c04d6e40a01bd35
MD5 4e4eba2591b14d8e321caa9309826678
BLAKE2b-256 e8f84693ba316b6ae7f769204adeba4aeb16f7c10922798733a051db02d3b670

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page