diff options
| -rw-r--r-- | Cargo.lock | 16 | ||||
| -rw-r--r-- | Cargo.toml | 10 | ||||
| -rw-r--r-- | README.md | 20 | ||||
| -rw-r--r-- | README.rst | 24 | ||||
| -rw-r--r-- | examples/sen.py | 14 | ||||
| -rw-r--r-- | pyproject.toml | 6 | ||||
| -rw-r--r-- | src/lib.rs | 2 |
7 files changed, 44 insertions, 48 deletions
@@ -715,14 +715,6 @@ dependencies = [ ] [[package]] -name = "sen-py" -version = "0.1.0" -dependencies = [ - "pyo3", - "senpy", -] - -[[package]] name = "senpy" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -735,6 +727,14 @@ dependencies = [ ] [[package]] +name = "senpy-club" +version = "0.1.1" +dependencies = [ + "pyo3", + "senpy", +] + +[[package]] name = "serde" version = "1.0.136" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -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 <[email protected]>"] 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` + +[](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 <a href="./examples"><code>examples/</code></a> directory. - -License -------- - -`GNU General Public License v3.0 <https://github.com/senpy-club/sen-py/blob/main/LICENSE>`_ 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 <[email protected]>"] 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"] @@ -98,7 +98,7 @@ pub fn status() -> PyResult<bool> { } #[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", |