Skip to content

Commit

Permalink
Rename dirs to match module names
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel A. Cabrera Minagorri <devgorri@gmail.com>
  • Loading branch information
miguelaeh committed Aug 16, 2023
1 parent f6221b1 commit 255d567
Show file tree
Hide file tree
Showing 24 changed files with 33 additions and 33 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Test the installation with:
pipeless --help
```

> NOTE: you may need to reload your shell for the new command to be available
## Getting Started 🚀

We recommend reading the getting starting guide, however, you can also go directly to the (examples)[examples] directory.
Expand Down
5 changes: 2 additions & 3 deletions cli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pipeless-ai-cli"
version = "0.1.2"
version = "0.1.3"
description = "Pipeless is a framework to build and deploy multimodal perception apps in minutes without worrying about multimedia pipelines"
authors = ["Miguel Angel Cabrera Minagorri <devgorri@gmail.com>"]
license = "Apache-2.0"
Expand All @@ -9,7 +9,6 @@ homepage = "https://pipeless.ai"
repository = "https://github.com/miguelaeh/pipeless"
documentation = "https://github.com/miguelaeh/pipeless"
keywords = ["multimedia", "framework", "artificial-intelligence", "pipeline", "developer-tools"]
packages = [{include = "src/cli"}]

[tool.poetry.dependencies]
python = "^3.10"
Expand All @@ -22,4 +21,4 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
pipeless = "src.cli.main:app"
pipeless = "pipeless_ai_cli.main:app"
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import yaml
import os
import importlib.util
from pipeless.pipeless import Pipeless
from pipeless_ai.core import Pipeless

def run_app(component: str):
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pipeless.lib.app.app import PipelessApp
from pipeless_ai.lib.app.app import PipelessApp

class App(PipelessApp):
"""
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pipeless-ai"
version = "0.1.0"
version = "0.1.1"
description = "A framework to build and deploy multimodal perception apps in minutes without worrying about multimedia pipelines"
authors = ["Miguel Angel Cabrera Minagorri <devgorri@gmail.com>"]
license = "Apache-2.0"
Expand All @@ -9,7 +9,6 @@ homepage = "https://pipeless.ai"
repository = "https://github.com/miguelaeh/pipeless"
documentation = "https://github.com/miguelaeh/pipeless"
keywords = ["multimedia", "framework", "artificial-intelligence", "pipeline", "developer-tools"]
packages = [{include = "src/pipeless"}]

[tool.poetry.dependencies]
python = "^3.10"
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions core/src/pipeless/pipeless.py → core/src/pipeless_ai/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import sys
import time

from pipeless.lib.input import input
from pipeless.lib.output import output
from pipeless.lib.worker import worker
from pipeless.lib.logger import logger, update_logger_level
from pipeless.lib.config import Config
from pipeless_ai.lib.input import input
from pipeless_ai.lib.output import output
from pipeless_ai.lib.worker import worker
from pipeless_ai.lib.logger import logger, update_logger_level
from pipeless_ai.lib.config import Config

def run_all(user_app_class):
executor = concurrent.futures.ProcessPoolExecutor()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pipeless.lib.timer import timer
from pipeless_ai.lib.timer import timer

class PipelessApp():
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
import sys

from pipeless.lib.singleton import Singleton
from pipeless.lib.logger import logger
from pipeless_ai.lib.singleton import Singleton
from pipeless_ai.lib.logger import logger

ENV_PREFIX = 'PIPELESS'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from pynng import Push0, Pull0, Timeout, Pair0
from pynng.exceptions import Closed as ClosedException, TryAgain, ConnectionRefused

from pipeless.lib.singleton import Singleton
from pipeless.lib.config import Config
from pipeless.lib.logger import logger
from pipeless_ai.lib.singleton import Singleton
from pipeless_ai.lib.config import Config
from pipeless_ai.lib.logger import logger

# Handle SIGNINT (ctrl+c) during sockets dialing blocking process
def exit(signum, frame):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
gi.require_version('GstApp', '1.0')
from gi.repository import Gst, GObject, GstApp, GLib

from pipeless.lib.logger import logger
from pipeless.lib.connection import InputOutputSocket, InputPushSocket
from pipeless.lib.config import Config
from pipeless.lib.messages import EndOfStreamMsg, RgbImageMsg, StreamCapsMsg, StreamTagsMsg
from pipeless_ai.lib.logger import logger
from pipeless_ai.lib.connection import InputOutputSocket, InputPushSocket
from pipeless_ai.lib.config import Config
from pipeless_ai.lib.messages import EndOfStreamMsg, RgbImageMsg, StreamCapsMsg, StreamTagsMsg

def on_new_sample(sink: GstApp.AppSink) -> Gst.FlowReturn:
sample = sink.pull_sample()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from enum import Enum
import numpy as np

from pipeless.lib.logger import logger
from pipeless_ai.lib.logger import logger

class MsgType(Enum):
CAPABILITIES = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
gi.require_version('GstPbutils', '1.0')
from gi.repository import Gst, GstApp, GLib, GstPbutils

from pipeless.lib.connection import InputOutputSocket, OutputPullSocket
from pipeless.lib.logger import logger
from pipeless.lib.messages import EndOfStreamMsg, StreamCapsMsg, StreamTagsMsg, deserialize, RgbImageMsg
from pipeless.lib.config import Config
from pipeless_ai.lib.connection import InputOutputSocket, OutputPullSocket
from pipeless_ai.lib.logger import logger
from pipeless_ai.lib.messages import EndOfStreamMsg, StreamCapsMsg, StreamTagsMsg, deserialize, RgbImageMsg
from pipeless_ai.lib.config import Config

def fetch_and_send(appsrc: GstApp.AppSrc, copy_timestamps: bool):
# TODO: we may need to use the 'need-data' and 'enough-data' signals to avoid overflowing the appsrc input queue
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from functools import wraps
import time
from pipeless.lib.logger import logger
from pipeless_ai.lib.logger import logger

def timer(func):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import traceback
import numpy as np

from pipeless.lib.connection import InputPullSocket, OutputPushSocket
from pipeless.lib.logger import logger
from pipeless.lib.messages import EndOfStreamMsg, RgbImageMsg, deserialize
from pipeless_ai.lib.connection import InputPullSocket, OutputPushSocket
from pipeless_ai.lib.logger import logger
from pipeless_ai.lib.messages import EndOfStreamMsg, RgbImageMsg, deserialize

def fetch_and_process(user_app):
"""
Expand Down
4 changes: 2 additions & 2 deletions examples/cats/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pipeless.lib.app.app import PipelessApp
from pipeless.lib.logger import logger
from pipeless_ai.lib.app.app import PipelessApp
from pipeless_ai.lib.logger import logger
import cv2

class App(PipelessApp):
Expand Down

0 comments on commit 255d567

Please sign in to comment.