primitive 0.1.90__py3-none-any.whl → 0.1.91__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.
primitive/__about__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2024-present Dylan Stein <dylan@primitive.tech>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.1.90"
4
+ __version__ = "0.1.91"
@@ -464,13 +464,13 @@ class Hardware(BaseAction):
464
464
  filters = {
465
465
  "isRegistered": {"exact": True},
466
466
  }
467
- if fingerprint:
467
+ if fingerprint is not None:
468
468
  filters["fingerprint"] = {"exact": fingerprint}
469
- if slug:
469
+ if slug is not None:
470
470
  filters["slug"] = {"exact": slug}
471
- if id:
471
+ if id is not None:
472
472
  filters["id"] = {"exact": id}
473
- if nested_children:
473
+ if nested_children is True:
474
474
  filters["hasParent"] = {"exact": False}
475
475
 
476
476
  variables = {
@@ -491,11 +491,11 @@ class Hardware(BaseAction):
491
491
  query = gql(hardware_details)
492
492
 
493
493
  filters = {}
494
- if fingerprint:
494
+ if fingerprint is not None:
495
495
  filters["fingerprint"] = {"exact": fingerprint}
496
- if slug:
496
+ if slug is not None:
497
497
  filters["slug"] = {"exact": slug}
498
- if id:
498
+ if id is not None:
499
499
  filters["id"] = {"exact": id}
500
500
 
501
501
  variables = {
@@ -136,7 +136,7 @@ def list_command(context):
136
136
  else "",
137
137
  )
138
138
 
139
- if len(hardware.get("children")) > 0:
139
+ if len(hardware.get("children", [])) > 0:
140
140
  for child in hardware.get("children"):
141
141
  name = child.get("name")
142
142
  slug = child.get("slug")
@@ -13,10 +13,6 @@ fragment HardwareFragment on Hardware {
13
13
  systemInfo
14
14
  hostname
15
15
  sshUsername
16
- capabilities {
17
- id
18
- pk
19
- }
20
16
  organization {
21
17
  id
22
18
  pk
@@ -14,7 +14,7 @@ class Organizations(BaseAction):
14
14
  self,
15
15
  organization_id: Optional[str] = None,
16
16
  slug: Optional[str] = None,
17
- first: Optional[int] = 1,
17
+ first: Optional[int] = None,
18
18
  last: Optional[int] = None,
19
19
  ):
20
20
  query = gql(organizations_query)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: primitive
3
- Version: 0.1.90
3
+ Version: 0.1.91
4
4
  Project-URL: Documentation, https://github.com//primitivecorp/primitive-cli#readme
5
5
  Project-URL: Issues, https://github.com//primitivecorp/primitive-cli/issues
6
6
  Project-URL: Source, https://github.com//primitivecorp/primitive-cli
@@ -1,4 +1,4 @@
1
- primitive/__about__.py,sha256=NP2tPbuYmShyImJTzKCAVwASLz3snHLZEBbVIsZzfww,130
1
+ primitive/__about__.py,sha256=Pcjvhbmmtb_HD3hZl5K0wZmVNyhcTeRZL0NrkJqP0yg,130
2
2
  primitive/__init__.py,sha256=bwKdgggKNVssJFVPfKSxqFMz4IxSr54WWbmiZqTMPNI,106
3
3
  primitive/cli.py,sha256=CiI60bG3UZyNFuLTpchr0KeJRG5SALj455Ob11CegGE,2412
4
4
  primitive/client.py,sha256=PPyIQRvKKSqCF9RRF5mJJ4Vqqolpzy1YXqffNLKIvAA,2390
@@ -40,11 +40,11 @@ primitive/graphql/relay.py,sha256=bmij2AjdpURQ6GGVCxwWhauF-r_SxuAU2oJ4sDbLxpI,72
40
40
  primitive/graphql/sdk.py,sha256=DBFH8vw8FAGvRy8_FZc9WcjnwaQDlXmI8fiYmhCg-b0,1458
41
41
  primitive/graphql/utility_fragments.py,sha256=uIjwILC4QtWNyO5vu77VjQf_p0jvP3A9q_6zRq91zqs,303
42
42
  primitive/hardware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
- primitive/hardware/actions.py,sha256=suNBmAtdPOKsb0TYX7qHgtP4eG3c3xLN8F6dj-_FHfI,21938
43
+ primitive/hardware/actions.py,sha256=6dnPUN_hjXy4DIVoKWneiqgdF6UWfwDN82GczAqRykw,22018
44
44
  primitive/hardware/android.py,sha256=NcvbDb9ZLl5PCeHII84yLxZo0V48Vn5K75AzkIsg9is,2623
45
- primitive/hardware/commands.py,sha256=9kL3ZMYqu5mv2A3qk5UjPspDB_s9xRzCLpk3aSFMpb0,5084
45
+ primitive/hardware/commands.py,sha256=sU9xES9UK3JO1RxZMeC0412pcWIwXWXwr8rmMzz1VGQ,5088
46
46
  primitive/hardware/graphql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
- primitive/hardware/graphql/fragments.py,sha256=vftwwfOQfe8LiRSHJ5gkbi2scTtSeGjBhS3DE5Vna8o,385
47
+ primitive/hardware/graphql/fragments.py,sha256=kI6qnTNjaEaUr-C6eD55COphtueVYbYOWZwN5EW_3qw,350
48
48
  primitive/hardware/graphql/mutations.py,sha256=_4Hkbfik9Ron4T-meulu6T-9FR_BZjyPNwn745MPksU,1484
49
49
  primitive/hardware/graphql/queries.py,sha256=2k-ZMaSDDO8YsbYNV54pw0yHnsPco6Y9ZfKBOEnQCsw,1348
50
50
  primitive/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -55,7 +55,7 @@ primitive/jobs/graphql/fragments.py,sha256=GZ_rVc_pc3MfC8EhCY_X9rjeNUdiwEytdqrkn
55
55
  primitive/jobs/graphql/mutations.py,sha256=8ASvCmwQh7cMeeiykOdYaYVryG8FRIuVF6v_J8JJZuw,219
56
56
  primitive/jobs/graphql/queries.py,sha256=BrU_GnLjK0bTAmWsLSmGEUea7EM8MqTKxN1Qp6sSjwc,1597
57
57
  primitive/organizations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
- primitive/organizations/actions.py,sha256=o7WnTONtH-WI0kzn71Uq-kF0CRjDS8Xb9YA7DIjYnwY,1085
58
+ primitive/organizations/actions.py,sha256=Tgp_rox0jcvfhQ-LmcWc9vkPdeJu5Bk6U1rNuT9oDnw,1088
59
59
  primitive/organizations/commands.py,sha256=_dwgVEJCqMa5VgB_7P1wLPFc0AuT1p9dtyR9JRr4kpw,487
60
60
  primitive/organizations/graphql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
61
  primitive/organizations/graphql/fragments.py,sha256=a1qKq4FZB5qze0XTo1fOUeGAscIasjn_Ig4gA2_vStY,142
@@ -91,8 +91,8 @@ primitive/utils/memory_size.py,sha256=4xfha21kW82nFvOTtDFx9Jk2ZQoEhkfXii-PGNTpIU
91
91
  primitive/utils/printer.py,sha256=f1XUpqi5dkTL3GWvYRUGlSwtj2IxU1q745T4Fxo7Tn4,370
92
92
  primitive/utils/shell.py,sha256=vpjr2Y7UQGYOvPGa6_RYXPPjqScfa9k7kT3tugF9h4Y,1837
93
93
  primitive/utils/verible.py,sha256=Zb5NUISvcaIgEvgCDBWr-GCoceMa79Tcwvr5Wl9lfnA,2252
94
- primitive-0.1.90.dist-info/METADATA,sha256=SmWBlONk95zPIy_-5oCuj-gujfNieH24R8Cm88enquA,3670
95
- primitive-0.1.90.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
96
- primitive-0.1.90.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
97
- primitive-0.1.90.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
98
- primitive-0.1.90.dist-info/RECORD,,
94
+ primitive-0.1.91.dist-info/METADATA,sha256=K3hzrLYG6ODSBpx-Vxz3gpKzzHSBa-VaoCYppm5NpQY,3670
95
+ primitive-0.1.91.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
96
+ primitive-0.1.91.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
97
+ primitive-0.1.91.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
98
+ primitive-0.1.91.dist-info/RECORD,,