Skip to content

Commit

Permalink
fix!: remove unsupported APIs
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The SDK methods for unsupported APIs are dropped
  • Loading branch information
YaswanthKumar-eng authored and ankitrgadiya committed Oct 14, 2024
1 parent 4395513 commit fd05053
Show file tree
Hide file tree
Showing 101 changed files with 171 additions and 14,218 deletions.
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ command.
python setup.py install
```

## Development

Create a python virtual environment, having version less than 3.11

```bash
pipenv install --dev
```

## Getting Started

Before using the SDK, you need the Rapyuta Token. You can get it from
Expand All @@ -40,17 +48,14 @@ from rapyuta_io import Project

project = client.create_project(Project("python-sdk"))
client.set_project(project.guid)

# Create a Build
from rapyuta_io import Build, StrategyType, DeviceArch

client.create_build(
Build(
"dummy",
StrategyType.DOCKER,
"https://github.com/ankitrgadiya/dummy-package",
DeviceArch.AMD64,
)
)
```

## SDK Test

`RIO_CONFIG` environment variable pointing to the config.json must be sourced to
run the sdk integration test. The sample config is present in `sdk_test` directory.
Run `run_rio_sdk_test.py` to start the sdk tests.

Currently only one docker compose device is needed to be created and added to the config,
SDK Test will add the device to the newly created project and onboard it and run tests.

35 changes: 0 additions & 35 deletions docs/source/build.rst

This file was deleted.

29 changes: 0 additions & 29 deletions docs/source/deployment.rst

This file was deleted.

31 changes: 0 additions & 31 deletions docs/source/native_network.rst

This file was deleted.

34 changes: 0 additions & 34 deletions docs/source/package.rst

This file was deleted.

38 changes: 0 additions & 38 deletions docs/source/project.rst

This file was deleted.

33 changes: 0 additions & 33 deletions docs/source/routed_network.rst

This file was deleted.

23 changes: 0 additions & 23 deletions docs/source/secret.rst

This file was deleted.

26 changes: 0 additions & 26 deletions docs/source/static_route.rst

This file was deleted.

26 changes: 0 additions & 26 deletions docs/source/volumes.rst

This file was deleted.

10 changes: 1 addition & 9 deletions rapyuta_io/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
from __future__ import absolute_import
from .clients.deployment import DeploymentPhaseConstants, DeploymentStatusConstants
from .clients.device import TopicKind, DeviceStatus, TopicQOS, QoS
from .clients.device import TopicKind, DeviceStatus, TopicQOS, QoS, DeploymentPhaseConstants, ROSDistro
from .clients.model import Label, Command, DeviceConfig, TopicsStatus
from .clients.persistent_volumes import DiskType
from rapyuta_io.utils import error
from .rio_client import Client
from .clients.package import ROSDistro
from .clients.device_manager import DeviceArch
from .clients.build import Build, BuildStatus, StrategyType, SimulationOptions, CatkinOption, \
BuildOptions
from .clients.buildoperation import BuildOperation, BuildOperationInfo
from .clients.project import Project
from .clients.secret import Secret, SecretConfigDocker
from .clients.rosbag import UploadOptions
from .clients.user_group import UserGroup

Expand Down
6 changes: 1 addition & 5 deletions rapyuta_io/clients/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
from .device_manager import DeviceManagerClient, DeviceArch
from .model import *
from .provision_client import ProvisionClient
from .paramserver import _ParamserverClient
from .package import ROSDistro
from .build import Build, BuildStatus, StrategyType, SimulationOptions, CatkinOption, BuildOptions
from .buildoperation import BuildOperation, BuildOperationInfo
from .device import Device
from .device import Device, ROSDistro
from .user_group import UserGroup
Loading

0 comments on commit fd05053

Please sign in to comment.