Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:
# FIXME how to support HDFS services in other platforms?
# services-hdfs
services-http
services-huggingface
services-hf
services-ipfs
services-ipmfs
services-memcached
Expand Down
5 changes: 3 additions & 2 deletions bindings/java/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ services-all = [
# FIXME how to support HDFS services in bindings?
# "services-hdfs",
# "services-hdfs-native",
"services-huggingface",
"services-hf",
"services-ipfs",
"services-memcached",
"services-mini-moka",
Expand Down Expand Up @@ -117,8 +117,9 @@ services-github = ["opendal/services-github"]
services-gridfs = ["opendal/services-gridfs"]
services-hdfs = ["opendal/services-hdfs"]
services-hdfs-native = ["opendal/services-hdfs-native"]
services-hf = ["opendal/services-hf"]
services-http = ["opendal/services-http"]
services-huggingface = ["opendal/services-huggingface"]
services-huggingface = ["services-hf"]
services-ipfs = ["opendal/services-ipfs"]
services-ipmfs = ["opendal/services-ipmfs"]
services-koofr = ["opendal/services-koofr"]
Expand Down
4 changes: 2 additions & 2 deletions bindings/java/src/utility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ fn intern_load_enabled_services(env: &mut JNIEnv) -> Result<jobjectArray> {
opendal::services::HDFS_NATIVE_SCHEME,
#[cfg(feature = "services-http")]
opendal::services::HTTP_SCHEME,
#[cfg(feature = "services-huggingface")]
opendal::services::HUGGINGFACE_SCHEME,
#[cfg(feature = "services-hf")]
opendal::services::HF_SCHEME,
#[cfg(feature = "services-ipfs")]
opendal::services::IPFS_SCHEME,
#[cfg(feature = "services-ipmfs")]
Expand Down
5 changes: 3 additions & 2 deletions bindings/nodejs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ services-all = [
# FIXME how to support HDFS services in bindings?
# "services-hdfs",
# "services-hdfs-native",
"services-huggingface",
"services-hf",
"services-ipfs",
"services-memcached",
"services-mini-moka",
Expand Down Expand Up @@ -121,7 +121,8 @@ services-gdrive = ["opendal/services-gdrive"]
services-gridfs = ["opendal/services-gridfs"]
services-hdfs = ["opendal/services-hdfs"]
services-hdfs-native = ["opendal/services-hdfs-native"]
services-huggingface = ["opendal/services-huggingface"]
services-hf = ["opendal/services-hf"]
services-huggingface = ["services-hf"]
services-ipfs = ["opendal/services-ipfs"]
services-koofr = ["opendal/services-koofr"]
services-memcached = ["opendal/services-memcached"]
Expand Down
5 changes: 3 additions & 2 deletions bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ services-all = [
'services-ftp',
'services-gdrive',
'services-gridfs',
'services-huggingface',
'services-hf',
'services-ipfs',
'services-koofr',
'services-memcached',
Expand Down Expand Up @@ -122,8 +122,9 @@ services-hdfs = [
"opendal/services-hdfs",
] # FIXME EXCLUDED: how to support HDFS services in bindings?
services-hdfs-native = ["opendal/services-hdfs-native"]
services-hf = ["opendal/services-hf"]
services-http = ["opendal/services-http"]
services-huggingface = ["opendal/services-huggingface"]
services-huggingface = ["services-hf"]
services-ipfs = ["opendal/services-ipfs"]
services-ipmfs = ["opendal/services-ipmfs"]
services-koofr = ["opendal/services-koofr"]
Expand Down
12 changes: 6 additions & 6 deletions bindings/python/python/opendal/operator.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ class AsyncOperator:
@typing.overload
def __new__(
cls,
scheme: opendal.services.Scheme.Huggingface | typing.Literal["huggingface"],
scheme: opendal.services.Scheme.Hf | typing.Literal["hf"],
/,
*,
repo_id: builtins.str = ...,
Expand All @@ -1182,7 +1182,7 @@ class AsyncOperator:
token: builtins.str = ...,
) -> typing_extensions.Self:
r"""
Create a new `AsyncOperator` for `huggingface` service.
Create a new `AsyncOperator` for `hf` (Hugging Face) service.

Parameters
----------
Expand All @@ -1207,7 +1207,7 @@ class AsyncOperator:
Returns
-------
AsyncOperator
The new `AsyncOperator` for `huggingface` service
The new `AsyncOperator` for `hf` (Hugging Face) service
"""
@typing.overload
def __new__(
Expand Down Expand Up @@ -3412,7 +3412,7 @@ class Operator:
@typing.overload
def __new__(
cls,
scheme: opendal.services.Scheme.Huggingface | typing.Literal["huggingface"],
scheme: opendal.services.Scheme.Hf | typing.Literal["hf"],
/,
*,
repo_id: builtins.str = ...,
Expand All @@ -3422,7 +3422,7 @@ class Operator:
token: builtins.str = ...,
) -> typing_extensions.Self:
r"""
Create a new `Operator` for `huggingface` service.
Create a new `Operator` for `hf` (Hugging Face) service.

Parameters
----------
Expand All @@ -3447,7 +3447,7 @@ class Operator:
Returns
-------
Operator
The new `Operator` for `huggingface` service
The new `Operator` for `hf` (Hugging Face) service
"""
@typing.overload
def __new__(
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/python/opendal/services.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Scheme(enum.Enum):
Gridfs = ...
HdfsNative = ...
Http = ...
Huggingface = ...
Hf = ...
Ipfs = ...
Ipmfs = ...
Koofr = ...
Expand Down
20 changes: 10 additions & 10 deletions bindings/python/src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ pub enum PyScheme {
HdfsNative,
#[cfg(feature = "services-http")]
Http,
#[cfg(feature = "services-huggingface")]
Huggingface,
#[cfg(feature = "services-hf")]
Hf,
#[cfg(feature = "services-ipfs")]
Ipfs,
#[cfg(feature = "services-ipmfs")]
Expand Down Expand Up @@ -1019,7 +1019,7 @@ submit! {
class Operator:
@overload
def __new__(cls,
scheme: typing.Union[opendal.services.Scheme.Huggingface, typing.Literal["huggingface"]],
scheme: typing.Union[opendal.services.Scheme.Hf, typing.Literal["hf"]],
/,
*,
endpoint: builtins.str = ...,
Expand All @@ -1030,7 +1030,7 @@ submit! {
token: builtins.str = ...,
) -> typing_extensions.Self:
r"""
Create a new `Operator` for `huggingface` service.
Create a new `Operator` for `hf` (Hugging Face) service.

Parameters
----------
Expand Down Expand Up @@ -1058,7 +1058,7 @@ submit! {
Returns
-------
Operator
The new `Operator` for `huggingface` service
The new `Operator` for `hf` (Hugging Face) service
"""
"#
}
Expand Down Expand Up @@ -3353,7 +3353,7 @@ submit! {
class AsyncOperator:
@overload
def __new__(cls,
scheme: typing.Union[opendal.services.Scheme.Huggingface, typing.Literal["huggingface"]],
scheme: typing.Union[opendal.services.Scheme.Hf, typing.Literal["hf"]],
/,
*,
endpoint: builtins.str = ...,
Expand All @@ -3364,7 +3364,7 @@ submit! {
token: builtins.str = ...,
) -> typing_extensions.Self:
r"""
Create a new `AsyncOperator` for `huggingface` service.
Create a new `AsyncOperator` for `hf` (Hugging Face) service.

Parameters
----------
Expand Down Expand Up @@ -3392,7 +3392,7 @@ submit! {
Returns
-------
AsyncOperator
The new `AsyncOperator` for `huggingface` service
The new `AsyncOperator` for `hf` (Hugging Face) service
"""
"#
}
Expand Down Expand Up @@ -4884,8 +4884,8 @@ impl_enum_to_str!(
HdfsNative => "hdfs-native",
#[cfg(feature = "services-http")]
Http => "http",
#[cfg(feature = "services-huggingface")]
Huggingface => "huggingface",
#[cfg(feature = "services-hf")]
Hf => "hf",
#[cfg(feature = "services-ipfs")]
Ipfs => "ipfs",
#[cfg(feature = "services-ipmfs")]
Expand Down
14 changes: 7 additions & 7 deletions core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ services-github = ["dep:opendal-service-github"]
services-gridfs = ["dep:opendal-service-gridfs"]
services-hdfs = ["dep:opendal-service-hdfs"]
services-hdfs-native = ["dep:opendal-service-hdfs-native"]
services-hf = ["dep:opendal-service-hf"]
services-http = ["dep:opendal-service-http"]
services-huggingface = ["dep:opendal-service-huggingface"]
services-huggingface = ["services-hf"]
services-ipfs = ["dep:opendal-service-ipfs"]
services-ipmfs = ["dep:opendal-service-ipmfs"]
services-koofr = ["dep:opendal-service-koofr"]
Expand Down Expand Up @@ -257,8 +258,8 @@ opendal-service-github = { path = "services/github", version = "0.55.0", optiona
opendal-service-gridfs = { path = "services/gridfs", version = "0.55.0", optional = true, default-features = false }
opendal-service-hdfs = { path = "services/hdfs", version = "0.55.0", optional = true, default-features = false }
opendal-service-hdfs-native = { path = "services/hdfs-native", version = "0.55.0", optional = true, default-features = false }
opendal-service-hf = { path = "services/hf", version = "0.55.0", optional = true, default-features = false }
opendal-service-http = { path = "services/http", version = "0.55.0", optional = true, default-features = false }
opendal-service-huggingface = { path = "services/huggingface", version = "0.55.0", optional = true, default-features = false }
opendal-service-ipfs = { path = "services/ipfs", version = "0.55.0", optional = true, default-features = false }
opendal-service-ipmfs = { path = "services/ipmfs", version = "0.55.0", optional = true, default-features = false }
opendal-service-koofr = { path = "services/koofr", version = "0.55.0", optional = true, default-features = false }
Expand Down
3 changes: 2 additions & 1 deletion core/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ services-gdrive = ["opendal/services-gdrive"]
services-ghac = ["opendal/services-ghac"]
services-gridfs = ["opendal/services-gridfs"]
services-hdfs = ["opendal/services-hdfs"]
services-hf = ["opendal/services-hf"]
services-http = ["opendal/services-http"]
services-huggingface = ["opendal/services-huggingface"]
services-huggingface = ["services-hf"]
services-ipfs = ["opendal/services-ipfs"]
services-ipmfs = ["opendal/services-ipmfs"]
services-memcached = ["opendal/services-memcached"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# under the License.

[package]
description = "Apache OpenDAL huggingface service implementation"
name = "opendal-service-huggingface"
description = "Apache OpenDAL Hugging Face service implementation"
name = "opendal-service-hf"

authors = { workspace = true }
edition = { workspace = true }
Expand Down
Loading
Loading