diff --git a/Cargo.lock b/Cargo.lock index 7c3820e..c76f926 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -714,14 +714,6 @@ dependencies = [ "libc", ] -[[package]] -name = "sen-py" -version = "0.1.0" -dependencies = [ - "pyo3", - "senpy", -] - [[package]] name = "senpy" version = "0.1.2" @@ -734,6 +726,14 @@ dependencies = [ "serde_derive", ] +[[package]] +name = "senpy-club" +version = "0.1.1" +dependencies = [ + "pyo3", + "senpy", +] + [[package]] name = "serde" version = "1.0.136" diff --git a/Cargo.toml b/Cargo.toml index 917f39b..6e0a63a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,20 +1,20 @@ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [package] -name = "sen-py" -version = "0.1.0" +name = "senpy-club" +version = "0.1.1" authors = ["Fuwn "] edition = "2021" description = "The Senpy Club API Wrapper for Python" -readme = "README.rst" -homepage = "https://github.com/senpy-club/sen-py" +readme = "README.md" +homepage = "https://pypi.org/project/senpy-club/" repository = "https://github.com/senpy-club/sen-py" license = "GPL-3.0-only" keywords = ["rust", "anime", "senpy", "senpy-club"] categories = ["web-programming", "api-bindings"] [lib] -name = "sen_py" +name = "senpy_club" crate-type = ["cdylib"] [dependencies] diff --git a/README.md b/README.md new file mode 100644 index 0000000..98044e8 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# 🐍 `sen-py` + +[![PyPI version](https://badge.fury.io/py/senpy-club.svg)](https://badge.fury.io/py/senpy-club) + +The Senpy Club API Wrapper for Python + +## Usage + +```shell +poetry add senpy-club # Poetry +pip install senpy-club # PIP +``` + +## Examples + +Examples can be found within the [`examples/`](./examples) directory. + +## License + +[GNU General Public License v3.0](https://github.com/senpy-club/sen-py/blob/main/LICENSE) diff --git a/README.rst b/README.rst deleted file mode 100644 index 6110c7b..0000000 --- a/README.rst +++ /dev/null @@ -1,24 +0,0 @@ -🐍 :code:`sen-py` -================ - -The Senpy Club API Wrapper for Python - -Usage ------ - -.. code-block:: shell - - poetry add sen-py # Poetry - pip install sen-py # PIP - -Examples --------- - -.. raw:: html - - Examples can be found within the examples/ directory. - -License -------- - -`GNU General Public License v3.0 `_ diff --git a/examples/sen.py b/examples/sen.py index 6276ad6..3713c5b 100644 --- a/examples/sen.py +++ b/examples/sen.py @@ -1,12 +1,12 @@ -import sen_py +import senpy_club -print("SENPY_CLUB_API_BASE_URL:", sen_py.SENPY_CLUB_API_BASE_URL) -print("SENPY_CLUB_API_CURRENT_VERSION:", sen_py.SENPY_CLUB_API_CURRENT_VERSION) -print("SENPY_CLUB_API_URL:", sen_py.SENPY_CLUB_API_URL) +print("SENPY_CLUB_API_BASE_URL:", senpy_club.SENPY_CLUB_API_BASE_URL) +print("SENPY_CLUB_API_CURRENT_VERSION:", senpy_club.SENPY_CLUB_API_CURRENT_VERSION) +print("SENPY_CLUB_API_URL:", senpy_club.SENPY_CLUB_API_URL) -random: sen_py.Random = sen_py.Random() +random: senpy_club.Random = senpy_club.Random() print("Random.image:", random.language) print("Random.image:", random.image) -print("languages:", sen_py.languages()) -print("language(\"C\"):", sen_py.language("C")) +print("languages:", senpy_club.languages()) +print("language(\"C\"):", senpy_club.language("C")) diff --git a/pyproject.toml b/pyproject.toml index a6d48d3..7c0a8fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [tool.poetry] -name = "sen-py" -version = "0.1.0" +name = "senpy-club" +version = "0.1.1" description = "The Senpy Club API Wrapper for Python" authors = ["Fuwn "] license = "GPL-3.0-only" -readme = "README.rst" +readme = "README.md" repository = "https://github.com/senpy-club/sen-py" keywords = ["rust", "anime", "senpy", "senpy-club"] diff --git a/src/lib.rs b/src/lib.rs index a5da3da..d5bb9df 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -98,7 +98,7 @@ pub fn status() -> PyResult { } #[pymodule] -fn sen_py(_py: Python<'_>, module: &PyModule) -> PyResult<()> { +fn senpy_club(_py: Python<'_>, module: &PyModule) -> PyResult<()> { module.add("SENPY_CLUB_API_BASE_URL", SENPY_CLUB_API_BASE_URL)?; module.add( "SENPY_CLUB_API_CURRENT_VERSION",