Rust library for generate Apple Wallet Passes for iOS, WatchOS, MacOS.
Project description
Passes
A Rust library for generating PassKit passes, featuring:
- Read & parse
.pkpassfiles - Build & make passes by using library API
- Sign passes with certificate and compress to
.pkpass - Change field values is pass by key name
- Supported semantic tags for pass & fields
- All features of Wallet Passes standard represented in library
Documentation:
Usage
Add this to your Cargo.toml:
[dependencies]
passes = "0.1.0"
Example
For building simple pass:
// Creating pass
let pass = PassBuilder::new(PassConfig {
organization_name: "Test organization".into(),
description: "Super gentlememe pass".into(),
pass_type_identifier: "com.example.pass".into(),
team_identifier: "AA00AA0A0A".into(),
serial_number: "ABCDEFG1234567890".into(),
})
.grouping_identifier(String::from("com.example.pass.app"))
.logo_text("Test pass".into())
.build();
Creating package and generate .pkpass file:
let mut package = Package::new(pass);
// Save package as .pkpass
let path = Path::new("test_pass.pkpass");
let file = match File::create(&path) {
Err(why) => panic!("couldn't create {}: {}", path.display(), why),
Ok(file) => file,
};
package.write(file).unwrap();
For more examples, see examples directory.
License
Passes is distributed under the terms of the MIT license. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file passes_rs_py-2.0.0-cp313-cp313-manylinux_2_38_x86_64.whl.
File metadata
- Download URL: passes_rs_py-2.0.0-cp313-cp313-manylinux_2_38_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.13, manylinux: glibc 2.38+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c482983e5082f829df2512794e0259c2b5bb7c457a347115497eddd82d1d9150
|
|
| MD5 |
5b9a4484b8d31fc7201a9491b6748c8d
|
|
| BLAKE2b-256 |
fb61140e53d1aa4d58161d70f6a54fe1175f494975a45955bdd7828891015537
|
Provenance
The following attestation bundles were made for passes_rs_py-2.0.0-cp313-cp313-manylinux_2_38_x86_64.whl:
Publisher:
release.yaml on jontyms/neo-passes-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
passes_rs_py-2.0.0-cp313-cp313-manylinux_2_38_x86_64.whl -
Subject digest:
c482983e5082f829df2512794e0259c2b5bb7c457a347115497eddd82d1d9150 - Sigstore transparency entry: 206543262
- Sigstore integration time:
-
Permalink:
jontyms/neo-passes-rs@2af160e8ac6711625421230dbb3868f14d669710 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/jontyms
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@2af160e8ac6711625421230dbb3868f14d669710 -
Trigger Event:
push
-
Statement type: