{"id":17100632,"url":"https://github.com/jakobhellermann/rupnp","last_synced_at":"2025-08-20T04:32:46.031Z","repository":{"id":43729840,"uuid":"177831890","full_name":"jakobhellermann/rupnp","owner":"jakobhellermann","description":"Rust library for the universal plug and play protocol.","archived":false,"fork":false,"pushed_at":"2023-09-16T21:29:26.000Z","size":133,"stargazers_count":38,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-09T21:34:19.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jakobhellermann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-26T16:52:53.000Z","updated_at":"2024-10-25T22:33:00.000Z","dependencies_parsed_at":"2022-08-22T13:10:27.068Z","dependency_job_id":null,"html_url":"https://github.com/jakobhellermann/rupnp","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Frupnp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Frupnp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Frupnp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Frupnp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakobhellermann","download_url":"https://codeload.github.com/jakobhellermann/rupnp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229875386,"owners_count":18137798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T15:14:18.832Z","updated_at":"2025-08-20T04:32:46.017Z","avatar_url":"https://github.com/jakobhellermann.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"![GitHub last commit](https://img.shields.io/github/last-commit/jakobhellermann/rupnp.svg)\n[![Crates.io](https://img.shields.io/crates/v/rupnp.svg)](https://crates.io/crates/rupnp)\n\n# rupnp\nAn asynchronous library for finding UPnP control points, performing actions on them\nand reading their service descriptions.\nUPnP stand for `Universal Plug and Play` and is widely used for routers, WiFi-enabled speakers\nand media servers.\n\nSpec:\n[http://rupnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v2.0.pdf](http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v2.0.pdf)\n\n# Example usage:\nThe following code searches for devices that have a `RenderingControl` service \nand print their names along with their current volume.\n```rust\nuse futures::prelude::*;\nuse std::time::Duration;\nuse rupnp::ssdp::{SearchTarget, URN};\n\nconst RENDERING_CONTROL: URN = URN::service(\"schemas-upnp-org\", \"RenderingControl\", 1);\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), rupnp::Error\u003e {\n    let search_target = SearchTarget::URN(RENDERING_CONTROL);\n    let devices = rupnp::discover(\u0026search_target, Duration::from_secs(3), None).await?;\n    let mut devices = std::pin::pin!(devices);\n\n    while let Some(device) = devices.try_next().await? {\n        let service = device\n            .find_service(\u0026RENDERING_CONTROL)\n            .expect(\"searched for RenderingControl, got something else\");\n\n        let args = \"\u003cInstanceID\u003e0\u003c/InstanceID\u003e\u003cChannel\u003eMaster\u003c/Channel\u003e\";\n        let response = service.action(device.url(), \"GetVolume\", args).await?;\n\n        let volume = response.get(\"CurrentVolume\").unwrap();\n\n        println!(\"'{}' is at volume {}\", device.friendly_name(), volume);\n    }\n\n    Ok(())\n}\n```\n\nLicense\n-------\n\nLicensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\nContribution\n------------\n\nPlease use [rustfmt](https://github.com/rust-lang/rustfmt) before any pull requests.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobhellermann%2Frupnp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakobhellermann%2Frupnp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobhellermann%2Frupnp/lists"}