anatools 5.1.25__py3-none-any.whl → 5.1.27__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.
anatools/__init__.py CHANGED
@@ -16,4 +16,4 @@ View the `Introduction to Rendered.ai Documentation`_ to learn more.
16
16
  from .anaclient.anaclient import client
17
17
  from .annotations.annotations import annotations
18
18
 
19
- __version__ = '5.1.25'
19
+ __version__ = '5.1.27'
@@ -307,6 +307,7 @@ try:
307
307
  remotechannel = client.get_channels(channelId=remotechannel['channelId'])[0]
308
308
  else:
309
309
  organizations = sorted(client.get_organizations(), key=lambda x: x['name'].lower())
310
+ organizations = [o for o in organizations if o['serviceOnly'] != True]
310
311
  if len(organizations) > 1:
311
312
  print_color("Choose an organization to deploy the channel to: ", color='brand')
312
313
  for i, organization in enumerate(organizations):
@@ -419,7 +420,7 @@ try:
419
420
  for i, remote in enumerate(localservice.remotes):
420
421
  try:
421
422
  if 'environment' not in remote: remote['environment'] = 'prod'
422
- if client.environment == remote['environment']:
423
+ if client.environment == remote['environment']:
423
424
  s = client.get_services(serviceId=remote['serviceId'])[0]
424
425
  organization = client.get_organizations(organizationId=s['organizationId'])[0]
425
426
  s['organization'] = organization
@@ -467,6 +468,7 @@ try:
467
468
  remoteservice = client.get_services(serviceId=remoteservice['serviceId'])[0]
468
469
  else:
469
470
  organizations = sorted(client.get_organizations(), key=lambda x: x['name'].lower())
471
+ organizations = [o for o in organizations if o['serviceOnly'] == True]
470
472
  if len(organizations) > 1:
471
473
  print_color("Choose an organization to deploy the service to: ", color='brand')
472
474
  for i, organization in enumerate(organizations):
@@ -481,7 +483,7 @@ try:
481
483
  if selection == str(options-2): remoteservice = create_service(client=client, organization=remoteorganization, name=localservice.name, volumes=volumes)
482
484
  else:
483
485
  services = sorted(client.get_services(organizationId=remoteorganization['organizationId']), key=lambda x: x['name'].lower())
484
- services = [s for s in services if s['organizationId'] == remoteorganization['organizationId']]
486
+ services = [s for s in services if s['organizationId'] == remoteorganization['organizationId'] and not '-v' in s['serviceId']]
485
487
  if len(services) > 0:
486
488
  print_color("Choose a service to deploy to: ", color='brand')
487
489
  for i, service in enumerate(services):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anatools
3
- Version: 5.1.25
3
+ Version: 5.1.27
4
4
  Summary: Tools for development with the Rendered.ai Platform.
5
5
  Home-page: https://rendered.ai
6
6
  Author: Rendered AI, Inc
@@ -1,4 +1,4 @@
1
- anatools/__init__.py,sha256=NS0kdcxltaz_gtuNFFGIX74ZBHX6_4od1uo05xuipng,954
1
+ anatools/__init__.py,sha256=2ym595AIVjd4ieIeWkzEuMYJesgPzbd_KKauRFjmdk8,954
2
2
  anatools/anacreate.py,sha256=wK1GKxGSzFdeQtqBkGhpai1sFjSJaKZ2686zrVJPBd0,5622
3
3
  anatools/anaclient/__init__.py,sha256=tjCd-MMkWOjhjY1mlbGtHNhEdHLj-W687GiYJHsf_J0,50
4
4
  anatools/anaclient/_menu.py,sha256=WSD8h7_SPRq9F6I0ohzkA4L0aLUx7L9YtIihk9eiD_o,5965
@@ -140,17 +140,17 @@ anatools/nodes/volume_directory.py,sha256=oe721h7qOplRj6N6NpGuyY1HCM277NSYA-6Uo3
140
140
  anatools/nodes/volume_directory.yml,sha256=MbyuLUlcqWIlQadYcn4Rvf6roypqh5IiP3dP57TilbY,901
141
141
  anatools/nodes/volume_file.py,sha256=YA4zCyRvVzF_9mMefGx29JLE7o9i6-NPaC40BFGv4_c,557
142
142
  anatools/nodes/volume_file.yml,sha256=i8bo9QeQmTLeWjv9Rh4EDoDqwOBULNPV7SMLO5AK8DI,862
143
- anatools-5.1.25.data/scripts/ana,sha256=qe7LDHRgJRPyomzAumdcYy0D5SuaUVag0N8SVevpxcU,5739
144
- anatools-5.1.25.data/scripts/anadeploy,sha256=GW0J6YzEvGY2TMbyzkfi-4Ov_gsw4qz2hHJwRx2o7nc,38216
145
- anatools-5.1.25.data/scripts/anamount,sha256=AiaUgaaVVREFY2FLYRmSA8xgSwbfiF9NJYi91SWRA1I,6186
146
- anatools-5.1.25.data/scripts/anaprofile,sha256=1YUUwHiSa4ORQsxVf2HaSakayNTwMTNeF2snEMSJQAM,9779
147
- anatools-5.1.25.data/scripts/anarules,sha256=vT2V-77DoL-o6mApSMVXjqeXRIWm44X3jPXdcNK29N0,8972
148
- anatools-5.1.25.data/scripts/anaserver,sha256=QB1k_vhXAFGMOi9SNIFwgzkzN5LzJeVLtIVkp1oHq4I,8343
149
- anatools-5.1.25.data/scripts/anatransfer,sha256=GbMLjgA3TP4Oo2mbUxWnkkSC4nKpw1DWta-WVfcNftw,14564
150
- anatools-5.1.25.data/scripts/anautils,sha256=fziapZuKuBO0VKRgb4C4Js8p9zxxh8OHQmmkNdo3t3E,9530
151
- anatools-5.1.25.dist-info/licenses/LICENSE,sha256=aw0uaPvFzrHLJxBvuRqUcE2_srfM32-1suya9HbZCY8,1072
152
- anatools-5.1.25.dist-info/METADATA,sha256=Pg2TjtE7TGhheLDoVYgyLS3qbZdcc5Iltr969jmhMC0,8218
153
- anatools-5.1.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
154
- anatools-5.1.25.dist-info/entry_points.txt,sha256=KsZUmvbH3HXC2CdVpE2GZNR2u_cJNVIbm6BnD658FgM,54
155
- anatools-5.1.25.dist-info/top_level.txt,sha256=p7xa5bG7NX8pSMJOvRunSz1d7rGPGsBd5-A4gzD4r6w,9
156
- anatools-5.1.25.dist-info/RECORD,,
143
+ anatools-5.1.27.data/scripts/ana,sha256=qe7LDHRgJRPyomzAumdcYy0D5SuaUVag0N8SVevpxcU,5739
144
+ anatools-5.1.27.data/scripts/anadeploy,sha256=nnJj5cbpKaatwJKfouGj1ZU6WveEDpuiZG1uIppPMu4,38420
145
+ anatools-5.1.27.data/scripts/anamount,sha256=AiaUgaaVVREFY2FLYRmSA8xgSwbfiF9NJYi91SWRA1I,6186
146
+ anatools-5.1.27.data/scripts/anaprofile,sha256=1YUUwHiSa4ORQsxVf2HaSakayNTwMTNeF2snEMSJQAM,9779
147
+ anatools-5.1.27.data/scripts/anarules,sha256=vT2V-77DoL-o6mApSMVXjqeXRIWm44X3jPXdcNK29N0,8972
148
+ anatools-5.1.27.data/scripts/anaserver,sha256=QB1k_vhXAFGMOi9SNIFwgzkzN5LzJeVLtIVkp1oHq4I,8343
149
+ anatools-5.1.27.data/scripts/anatransfer,sha256=GbMLjgA3TP4Oo2mbUxWnkkSC4nKpw1DWta-WVfcNftw,14564
150
+ anatools-5.1.27.data/scripts/anautils,sha256=fziapZuKuBO0VKRgb4C4Js8p9zxxh8OHQmmkNdo3t3E,9530
151
+ anatools-5.1.27.dist-info/licenses/LICENSE,sha256=aw0uaPvFzrHLJxBvuRqUcE2_srfM32-1suya9HbZCY8,1072
152
+ anatools-5.1.27.dist-info/METADATA,sha256=P7zUYMxp29ILv8dE6mRQEcdLLrGqzyP5Rd7d2MIJolM,8218
153
+ anatools-5.1.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
154
+ anatools-5.1.27.dist-info/entry_points.txt,sha256=KsZUmvbH3HXC2CdVpE2GZNR2u_cJNVIbm6BnD658FgM,54
155
+ anatools-5.1.27.dist-info/top_level.txt,sha256=p7xa5bG7NX8pSMJOvRunSz1d7rGPGsBd5-A4gzD4r6w,9
156
+ anatools-5.1.27.dist-info/RECORD,,