openpx-cli 0.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
openpx_cli/__init__.py ADDED
@@ -0,0 +1,36 @@
1
+ """OpenPX command line, early release."""
2
+
3
+ import sys
4
+
5
+ import openpx_sdk
6
+
7
+ __version__ = "0.0.1"
8
+
9
+ HELP = """openpx: the OpenPX command line (early release)
10
+
11
+ Usage:
12
+ openpx --version Show the version
13
+ openpx schema Print the address of the OpenPX schema
14
+ openpx --help Show this help
15
+
16
+ More: https://openpx.org"""
17
+
18
+
19
+ def main(argv=None):
20
+ args = sys.argv[1:] if argv is None else argv
21
+ cmd = args[0] if args else None
22
+ if cmd in ("--version", "-V"):
23
+ sys.stdout.write(f"openpx {__version__} (schema {openpx_sdk.SCHEMA_VERSION})\n")
24
+ return 0
25
+ if cmd == "schema":
26
+ sys.stdout.write(openpx_sdk.SCHEMA_URL + "\n")
27
+ return 0
28
+ if cmd in (None, "--help", "-h"):
29
+ sys.stdout.write(HELP + "\n")
30
+ return 0
31
+ sys.stderr.write(f"openpx: unknown command '{cmd}'\n\n{HELP}\n")
32
+ return 2
33
+
34
+
35
+ def run():
36
+ sys.exit(main())
@@ -0,0 +1,47 @@
1
+ Metadata-Version: 2.4
2
+ Name: openpx-cli
3
+ Version: 0.0.1
4
+ Summary: OpenPX command line (early release).
5
+ Author-email: OpenPX <packages@openpx.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://openpx.org
8
+ Project-URL: Schema, https://schema.openpx.org
9
+ Keywords: openpx,product-information,cli
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ License-File: TRADEMARKS
14
+ Requires-Dist: openpx-sdk==0.0.1
15
+ Dynamic: license-file
16
+
17
+ # openpx-cli
18
+
19
+ **Your products. Publish once. Verify everywhere.**
20
+
21
+ **Early release.** More at [openpx.org](https://openpx.org).
22
+
23
+ OpenPX is the open standard for sharing product information: describe each product once, prove it's yours, and publish it to every channel.
24
+
25
+ This package is the OpenPX command line. Today it does two things: `openpx --version`, and `openpx schema`, which prints the address of the OpenPX schema. More commands will follow.
26
+
27
+ ## Install
28
+
29
+ ```
30
+ pip install openpx-cli
31
+ ```
32
+
33
+ ## Use
34
+
35
+ ```
36
+ openpx --version
37
+ openpx schema
38
+ ```
39
+
40
+ ## Learn more
41
+
42
+ - OpenPX: https://openpx.org
43
+ - OpenPX schema: https://schema.openpx.org
44
+
45
+ ## License
46
+
47
+ The code and the bundled OpenPX schema are MIT licensed (see `LICENSE`). The OpenPX name and logo are trademarks of OpenPX Inc. and are not covered by that license (see `TRADEMARKS`).
@@ -0,0 +1,8 @@
1
+ openpx_cli/__init__.py,sha256=7pSi6UjU8oLYCDxJUTnhCqn23E9Yhalmnv6HNMcjEZM,881
2
+ openpx_cli-0.0.1.dist-info/licenses/LICENSE,sha256=GQODcd0m5_51dlXVzcab6BxM_seJgdKFwAni3bTxyA8,1290
3
+ openpx_cli-0.0.1.dist-info/licenses/TRADEMARKS,sha256=qYGsFG5dSN0RIio2qdeU6394C1_ELGOpeXlgcbpjdYs,1717
4
+ openpx_cli-0.0.1.dist-info/METADATA,sha256=B48TmSj9NCb378tlTjKUPnFnbIz_QXVXZ-mN5FD7g50,1292
5
+ openpx_cli-0.0.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
6
+ openpx_cli-0.0.1.dist-info/entry_points.txt,sha256=iLdaf7WapEfkweiqrltDcx5NS73N_fYQHjxLHGsFpNo,42
7
+ openpx_cli-0.0.1.dist-info/top_level.txt,sha256=WpSxVaHSVQVsCHT1Szv9ZWRMJa4WQN9dqH5a8VeaCDE,11
8
+ openpx_cli-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ openpx = openpx_cli:run
@@ -0,0 +1,27 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 OpenPX Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ NOTE: This MIT License covers this package's code and the bundled OpenPX schema
26
+ only. It does NOT grant any rights to the "OpenPX" name or the OpenPX logo,
27
+ which are trademarks. See the accompanying TRADEMARKS file.
@@ -0,0 +1,35 @@
1
+ OpenPX Trademark & Brand Notice
2
+ ================================
3
+
4
+ The OpenPX schema published at https://schema.openpx.org is released under the
5
+ MIT License (see LICENSE). Open licensing of the schema is intentional — we want
6
+ OpenPX to be freely implemented.
7
+
8
+ The MIT License covers the schema and code ONLY. It does NOT grant any right to
9
+ use the OpenPX name or logo.
10
+
11
+ OpenPX(TM), the OpenPX name, and the OpenPX logo (together, the "OpenPX Marks")
12
+ are trademarks of OpenPX Inc. We maintain these marks so that "OpenPX" continues to
13
+ identify the authentic standard and its governance — an open standard people can
14
+ trust needs a controlled name.
15
+
16
+ You MAY, without asking us first:
17
+ - Truthfully state that your product, library, or service supports, implements,
18
+ is built on, or is compatible with OpenPX (nominative/descriptive use).
19
+ - Link to https://schema.openpx.org and reference OpenPX versions by name.
20
+
21
+ You MAY NOT, without our prior written permission:
22
+ - Use the OpenPX Marks in any way that suggests endorsement, sponsorship,
23
+ certification, or affiliation that does not exist.
24
+ - Use "OpenPX" (or a confusingly similar name or logo) as the name of your own
25
+ product, service, company, organization, domain, or social account.
26
+ - Alter, recolor, distort, or re-draw the OpenPX logo, or use it as your own
27
+ brand or app icon.
28
+ - Register the OpenPX Marks, or confusingly similar marks, as your own.
29
+
30
+ Compatibility/badge use (e.g. "Works with OpenPX") is permitted only in a way
31
+ that is clearly descriptive and does not imply official certification.
32
+
33
+ Questions or permission requests: https://www.openpx.org/
34
+
35
+ (c) 2026 OpenPX Inc. All rights reserved with respect to the OpenPX Marks.
@@ -0,0 +1 @@
1
+ openpx_cli