gazu 0.10.28__py2.py3-none-any.whl → 0.10.30__py2.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.
gazu/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.10.28"
1
+ __version__ = "0.10.30"
gazu/files.py CHANGED
@@ -1281,7 +1281,7 @@ def upload_project_avatar(project, file_path, client=default):
1281
1281
  Upload given file as project avatar.
1282
1282
 
1283
1283
  Args:
1284
- project (str / dict): The project dict or the project ID.
1284
+ project (str / dict): The project dict or ID.
1285
1285
  file_path (str): Path of the file to upload as avatar.
1286
1286
  """
1287
1287
  path = (
@@ -1291,6 +1291,36 @@ def upload_project_avatar(project, file_path, client=default):
1291
1291
  return raw.upload(path, file_path, client=client)
1292
1292
 
1293
1293
 
1294
+ def download_organisation_avatar(organisation, file_path, client=default):
1295
+ """
1296
+ Download given organisation's avatar and save it at given location.
1297
+ Args:
1298
+ organisation (str / dict): The organisation dict or ID.
1299
+ file_path (str): Location on hard drive where to save the file.
1300
+ """
1301
+ organisation = normalize_model_parameter(organisation)
1302
+ return raw.download(
1303
+ "pictures/thumbnails/organisations/%s.png" % (organisation["id"]),
1304
+ file_path,
1305
+ client=client,
1306
+ )
1307
+
1308
+
1309
+ def upload_organisation_avatar(organisation, file_path, client=default):
1310
+ """
1311
+ Upload given file as organisation avatar.
1312
+
1313
+ Args:
1314
+ organisation (str / dict): The organisation dict or ID.
1315
+ file_path (str): Path of the file to upload as avatar.
1316
+ """
1317
+ path = (
1318
+ "/pictures/thumbnails/organisations/%s"
1319
+ % normalize_model_parameter(organisation)["id"]
1320
+ )
1321
+ return raw.upload(path, file_path, client=client)
1322
+
1323
+
1294
1324
  def update_preview(preview_file, data, client=default):
1295
1325
  """
1296
1326
  Update the data of given preview file.
gazu/person.py CHANGED
@@ -432,3 +432,17 @@ def change_password_for_person(person, password, client=default):
432
432
  {"password": password, "password_2": password},
433
433
  client=client,
434
434
  )
435
+
436
+
437
+ def invite_person(person, client=default):
438
+ """
439
+ Sends an email to given person to invite him/her to connect to Kitsu.
440
+
441
+ Args:
442
+ person (dict): The person to invite.
443
+ """
444
+ person = normalize_model_parameter(person)
445
+ return raw.get(
446
+ "actions/persons/%s/invite" % (person["id"]),
447
+ client=client,
448
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gazu
3
- Version: 0.10.28
3
+ Version: 0.10.30
4
4
  Summary: Gazu is a client for Zou, the API to store the data of your CG production.
5
5
  Home-page: https://gazu.cg-wire.com/
6
6
  Author: CG Wire
@@ -1,5 +1,5 @@
1
1
  gazu/__init__.py,sha256=KPAVnFOSbzZnd24ItkZEOv7yQ5w0Pv7k1TFmL8saiqY,2594
2
- gazu/__version__.py,sha256=tSZZU-8sK-qpbXeRSFzt4sAk3MkGsXB2Vnh3aMuNrWo,24
2
+ gazu/__version__.py,sha256=iOKxsFZOVNSmrVXYoK4BW4KUnVle6bzjJehJThVn5Qo,24
3
3
  gazu/asset.py,sha256=ZAc8F-7GPQTU_nVcUpH_xSVf58k6TXudlP6XnFc_LJk,14686
4
4
  gazu/cache.py,sha256=MnxrnfYN7wHNTTL7qzkEpYCYzWcolT56fqQ0_RegMbE,5879
5
5
  gazu/casting.py,sha256=0LTdsHaCTHSKEflBWFeuraSaYNYetGkMHAIdg6Lv81U,5059
@@ -11,9 +11,9 @@ gazu/encoder.py,sha256=dj8U5mlGVy0GeaA7HIIdPSRdKswUQ8h4DzjFKLhwvR0,394
11
11
  gazu/entity.py,sha256=Pbc_sbgo8RhQV88nksP1whHyWL4hVyHR3CZ0sVplPY4,3670
12
12
  gazu/events.py,sha256=4j8wbF4K-f5Kyu_jI4bklS12huzAN0cjCdY4hcKyhuk,2221
13
13
  gazu/exception.py,sha256=Y0kVNm6h-uXLEU1sNIbMSUep7Zxk738uYHOIVs2waM8,1880
14
- gazu/files.py,sha256=3zx6GWRRI9RPc6cN7sUIsj4g-ARfeypUUVUIvxqqNj8,39744
14
+ gazu/files.py,sha256=tEKXY43JRNb00W6IPSt8SWlKtFtk3LI3FfbKTe26aao,40702
15
15
  gazu/helpers.py,sha256=Qa4JlZitiXsfYMJGGuwVaedLvHQVMbIwcqEZ099EjMw,3916
16
- gazu/person.py,sha256=Ac2LvhBl_oelbsEQ79kyLU8wDO7PBNC50PMy1YLs4f0,11093
16
+ gazu/person.py,sha256=Heqi3BRPheNXtvP8DRy4QJNPboAQwOrwUe_OrPtc-nQ,11434
17
17
  gazu/playlist.py,sha256=fzrhVY0fhxp5rSlvrowZPWEOqdl4rEYD4TKmnuvyKHg,6740
18
18
  gazu/project.py,sha256=wqA3-C1LeS3MsMP198pSapH-47FA8V9ciIaq0Q_OBNw,12662
19
19
  gazu/scene.py,sha256=Q4AVmiMfGhSZfaXwOceyR-taTlpx1WCELe0UBSiHm8o,5357
@@ -22,8 +22,8 @@ gazu/sorting.py,sha256=qSIO0pOHkj0Tl4gm9BJrYrcifWGGGmsW68Pl86zB_bg,266
22
22
  gazu/sync.py,sha256=3clThVFC9pSIQiCyVkNRPnlbYQDA2kfR-lxaWxHbeUk,21611
23
23
  gazu/task.py,sha256=CsWS5II9b4Pbe4fcLt3HmUTvUD1hvZw7Uulqcp4W2_Y,38645
24
24
  gazu/user.py,sha256=GyJf6mrynHvLllw3Hsiv-6wjaYTHO_PBNkJzyJjJA1A,9556
25
- gazu-0.10.28.dist-info/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
26
- gazu-0.10.28.dist-info/METADATA,sha256=vAVOrU7LQ3XdFre-8rZUd-RzN2xB7V5UWoLrqsVKPMM,5471
27
- gazu-0.10.28.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
28
- gazu-0.10.28.dist-info/top_level.txt,sha256=nv7fRIVpYYyIlk_66hBmMyvWcSC7UU-r-GE8uC1u1Go,5
29
- gazu-0.10.28.dist-info/RECORD,,
25
+ gazu-0.10.30.dist-info/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
26
+ gazu-0.10.30.dist-info/METADATA,sha256=PJBd4NKc4bHUAgPzpL8wqCsYGZ_BVsuOKzBtsP1399c,5471
27
+ gazu-0.10.30.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
28
+ gazu-0.10.30.dist-info/top_level.txt,sha256=nv7fRIVpYYyIlk_66hBmMyvWcSC7UU-r-GE8uC1u1Go,5
29
+ gazu-0.10.30.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any