Commit 602352ce authored by Neelay Shah's avatar Neelay Shah Committed by GitHub
Browse files

chore: rename dynamo (#44)


Co-authored-by: default avatarBiswa Panda <biswa.panda@gmail.com>
parent ecf53ce2
......@@ -13,12 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Dynemo Distributed Logging Module.
//! Dynamo Distributed Logging Module.
//!
//! - Configuration loaded from:
//! 1. Environment variables (highest priority).
//! 2. Optional TOML file pointed to by the `DYN_LOGGING_CONFIG_PATH` environment variable.
//! 3. `/opt/dynemo/etc/logging.toml`.
//! 3. `/opt/dynamo/etc/logging.toml`.
//!
//! Logging can take two forms: `READABLE` or `JSONL`. The default is `READABLE`. `JSONL`
//! can be enabled by setting the `DYN_LOGGING_JSONL` environment variable to `1`.
......@@ -155,7 +155,7 @@ fn load_config() -> LoggingConfig {
let config_path = std::env::var(CONFIG_PATH_ENV).unwrap_or_else(|_| "".to_string());
let figment = Figment::new()
.merge(Serialized::defaults(LoggingConfig::default()))
.merge(Toml::file("/opt/dynemo/etc/logging.toml"))
.merge(Toml::file("/opt/dynamo/etc/logging.toml"))
.merge(Toml::file(config_path));
figment.extract().unwrap()
......
......@@ -299,7 +299,7 @@ impl<T: Send + Sync + 'static> From<Context<T>> for StreamContext {
}
}
// TODO - refactor here - this came from the dynemo-llm-async-engine crate
// TODO - refactor here - this came from the dynamo.llm-async-engine crate
use tokio::sync::watch::{channel, Receiver, Sender};
......
......@@ -22,7 +22,7 @@ use std::sync::Arc;
/// # Examples
///
/// ```
/// use dynemo_runtime::pipeline::registry::Registry;
/// use dynamo_runtime::pipeline::registry::Registry;
///
/// let mut registry = Registry::new();
///
......
......@@ -97,7 +97,7 @@ impl From<&str> for Endpoint {
///
/// # Examples
/// ```ignore
/// use dynemo_runtime:protocols::Endpoint;
/// use dynamo_runtime:protocols::Endpoint;
///
/// let endpoint = Endpoint::from("namespace/component/endpoint");
/// assert_eq!(endpoint.namespace, "namespace");
......@@ -152,7 +152,7 @@ impl FromStr for Endpoint {
/// # Examples
/// ```ignore
/// use std::str::FromStr;
/// use dynemo_runtime:protocols::Endpoint;
/// use dynamo_runtime:protocols::Endpoint;
///
/// let endpoint: Endpoint = "namespace/component/endpoint".parse().unwrap();
/// assert_eq!(endpoint.namespace, "namespace");
......
......@@ -18,7 +18,7 @@
//!
//! In the future, the [Worker] should probably be moved to a procedural macro similar
//! to the `#[tokio::main]` attribute, where we might annotate an async main function with
//! `#[dynemo::main]` or similar.
//! `#[dynamo::main]` or similar.
//!
//! The [Worker::execute] method is designed to be called once from main and will block
//! the calling thread until the application completes or is canceled. The method initialized
......
......@@ -21,12 +21,12 @@ use async_trait::async_trait;
use futures::Stream;
use tokio::sync::mpsc;
use dynemo_runtime::engine::{
use dynamo_runtime::engine::{
AsyncEngine, AsyncEngineContext, AsyncEngineContextProvider, AsyncEngineStream,
Data as DataType, Engine, EngineStream,
};
use dynemo_runtime::pipeline::{
use dynamo_runtime::pipeline::{
context::{Context, StreamContext},
Error, ManyOut, SingleIn,
};
......
......@@ -21,8 +21,8 @@ use futures::StreamExt;
use serde::{Deserialize, Serialize};
use tokio::sync::mpsc;
use dynemo_runtime::engine::{AsyncEngine, AsyncEngineContext, Data, ResponseStream};
use dynemo_runtime::pipeline::{
use dynamo_runtime::engine::{AsyncEngine, AsyncEngineContext, Data, ResponseStream};
use dynamo_runtime::pipeline::{
context::{Context, StreamContext},
Error, ManyOut, PipelineError, PipelineIO, SegmentSource, SingleIn,
};
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use dynemo_runtime::{worker::Worker, Result, Runtime};
use dynamo_runtime::{worker::Worker, Result, Runtime};
async fn hello_world(_runtime: Runtime) -> Result<()> {
Ok(())
......
......@@ -17,8 +17,8 @@ use futures::{stream, StreamExt};
use serde::{Deserialize, Serialize};
use std::{sync::Arc, time::Duration};
use dynemo_runtime::engine::ResponseStream;
use dynemo_runtime::{
use dynamo_runtime::engine::ResponseStream;
use dynamo_runtime::{
pipeline::{
async_trait, AsyncEngine, Data, Event, ManyOut, Operator, ServiceBackend, ServiceEngine,
ServiceFrontend, SingleIn, *,
......
......@@ -16,9 +16,9 @@
#[cfg(feature = "integration")]
mod integration {
pub const DEFAULT_NAMESPACE: &str = "dynemo";
pub const DEFAULT_NAMESPACE: &str = "dynamo";
use dynemo_runtime::{
use dynamo_runtime::{
logging,
pipeline::{
async_trait, network::Ingress, AsyncEngine, AsyncEngineContextProvider, Error, ManyOut,
......
......@@ -14,7 +14,7 @@
# limitations under the License.
[project]
name = "dynemo"
name = "dynamo"
version = "0.2.1"
description = "Distributed Inference Framework"
readme = "README.md"
......@@ -30,11 +30,11 @@ dependencies = [
]
[tool.maturin]
module-name = "dynemo._core"
module-name = "dynamo._core"
# Point to the Rust crate directory
manifest-path = "lib/bindings/python/Cargo.toml"
# Include all Python packages
python-packages = ["dynemo"]
python-packages = ["dynamo"]
# Specify the Python source directory
python-source = "lib/bindings/python/src"
......@@ -73,7 +73,7 @@ line_length = 88
balanced_wrapping = true
indent = " "
skip = ["build"]
known_first_party = ["dynemo"]
known_first_party = ["dynamo"]
[tool.pytest.ini_options]
minversion = "8.0"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment