otdf-python 0.0.7__py3-none-any.whl → 0.0.8__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.
otdf_python/build.py CHANGED
@@ -178,13 +178,13 @@ mod.add_function('gotdf_python_TokenAuth_AccessToken_Get', retval('char*'), [par
178
178
  mod.add_function('gotdf_python_TokenAuth_AccessToken_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
179
179
  mod.add_function('gotdf_python_TokenAuth_NpeClientId_Get', retval('char*'), [param('int64_t', 'handle')])
180
180
  mod.add_function('gotdf_python_TokenAuth_NpeClientId_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
181
- add_checked_string_function(mod, 'gotdf_python_EncryptFilePE', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config'), param('int64_t', 'token')])
182
- add_checked_string_function(mod, 'gotdf_python_EncryptString', retval('char*'), [param('char*', 'inputText'), param('int64_t', 'config')])
183
181
  add_checked_string_function(mod, 'gotdf_python_Hello', retval('char*'), [])
184
182
  add_checked_string_function(mod, 'gotdf_python_DecryptFile', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config')])
185
183
  add_checked_string_function(mod, 'gotdf_python_DecryptFilePE', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config'), param('int64_t', 'token')])
186
184
  add_checked_string_function(mod, 'gotdf_python_DecryptStringPE', retval('char*'), [param('char*', 'inputText'), param('int64_t', 'config'), param('int64_t', 'token')])
187
185
  add_checked_string_function(mod, 'gotdf_python_EncryptFile', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config')])
186
+ add_checked_string_function(mod, 'gotdf_python_EncryptFilePE', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config'), param('int64_t', 'token')])
187
+ add_checked_string_function(mod, 'gotdf_python_EncryptString', retval('char*'), [param('char*', 'inputText'), param('int64_t', 'config')])
188
188
 
189
189
  mod.generate(open('gotdf_python.c', 'w'))
190
190
 
@@ -347,15 +347,6 @@ class TokenAuth(go.GoClass):
347
347
 
348
348
 
349
349
  # ---- Functions ---
350
- def EncryptFilePE(inputFilePath, outputFilePath, config, token):
351
- """EncryptFilePE(str inputFilePath, str outputFilePath, object config, object token) str, str
352
-
353
- Encrypts a file as a PE (Person Entity), returning a TDF manifest and the cipher text.
354
- """
355
- return _gotdf_python.gotdf_python_EncryptFilePE(inputFilePath, outputFilePath, config.handle, token.handle)
356
- def EncryptString(inputText, config):
357
- """EncryptString(str inputText, object config) str, str"""
358
- return _gotdf_python.gotdf_python_EncryptString(inputText, config.handle)
359
350
  def Hello():
360
351
  """Hello() str
361
352
 
@@ -379,5 +370,14 @@ def DecryptStringPE(inputText, config, token):
379
370
  def EncryptFile(inputFilePath, outputFilePath, config):
380
371
  """EncryptFile(str inputFilePath, str outputFilePath, object config) str, str"""
381
372
  return _gotdf_python.gotdf_python_EncryptFile(inputFilePath, outputFilePath, config.handle)
373
+ def EncryptFilePE(inputFilePath, outputFilePath, config, token):
374
+ """EncryptFilePE(str inputFilePath, str outputFilePath, object config, object token) str, str
375
+
376
+ Encrypts a file as a PE (Person Entity), returning a TDF manifest and the cipher text.
377
+ """
378
+ return _gotdf_python.gotdf_python_EncryptFilePE(inputFilePath, outputFilePath, config.handle, token.handle)
379
+ def EncryptString(inputText, config):
380
+ """EncryptString(str inputText, object config) str, str"""
381
+ return _gotdf_python.gotdf_python_EncryptString(inputText, config.handle)
382
382
 
383
383
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: otdf_python
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Home-page: https://github.com/b-long/opentdf-python-sdk
5
5
  Author-email: b-long@users.noreply.github.com
6
6
  Description-Content-Type: text/markdown
@@ -0,0 +1,10 @@
1
+ otdf_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ otdf_python/_gotdf_python.cpython-311-darwin.so,sha256=8PublDwLyAeC4IJJeVcwF_tru65SJJ-XKYO8nDIlc6A,14765632
3
+ otdf_python/build.py,sha256=deA7qRUmgDFBSg1ZWrdftQmS4eoZU8qC-psDhT-gJO8,16756
4
+ otdf_python/go.py,sha256=7kz0kwEbEJZp9ZJIvdcUryZmhahLRb5RrkhGBN2BDBY,49317
5
+ otdf_python/gotdf_python.py,sha256=qBGEN2KaFgDBMM_pMTYXJv2vRuo8F7gSZnfW3F3iicE,13880
6
+ otdf_python-0.0.8.dist-info/LICENSE,sha256=51wzGxR-Rns8XaiGmDLq2OqPN3qWMpoQKV-fERpVzyM,1063
7
+ otdf_python-0.0.8.dist-info/METADATA,sha256=ssM-d1fcc7Bhv02KNGLKpWKEpIOstziNep8vX0i7QtQ,415
8
+ otdf_python-0.0.8.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
9
+ otdf_python-0.0.8.dist-info/top_level.txt,sha256=A2vK95iTIxdu4pm8kDZlvHorBKCvSN5dvlMdFbIVXrA,12
10
+ otdf_python-0.0.8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (71.1.0)
2
+ Generator: setuptools (72.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,10 +0,0 @@
1
- otdf_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- otdf_python/_gotdf_python.cpython-311-darwin.so,sha256=a4F1SxI9-UO0pfZIedxd9FTIURVIAJnSfySLgN1a7NE,14765632
3
- otdf_python/build.py,sha256=rpzmayPVJb1lVmp3z7QsYE_53d1oK9jSzUbGRkyQFEg,16756
4
- otdf_python/go.py,sha256=7kz0kwEbEJZp9ZJIvdcUryZmhahLRb5RrkhGBN2BDBY,49317
5
- otdf_python/gotdf_python.py,sha256=anadpyvCfU3Q3tcKHJrQ9Jnx3rkXA6wSmYrfG0CeE0Q,13880
6
- otdf_python-0.0.7.dist-info/LICENSE,sha256=51wzGxR-Rns8XaiGmDLq2OqPN3qWMpoQKV-fERpVzyM,1063
7
- otdf_python-0.0.7.dist-info/METADATA,sha256=coi5HnzvUZPVigDX_8ikXJCpQGo6oqtT8f9V-e8zkfM,415
8
- otdf_python-0.0.7.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
9
- otdf_python-0.0.7.dist-info/top_level.txt,sha256=A2vK95iTIxdu4pm8kDZlvHorBKCvSN5dvlMdFbIVXrA,12
10
- otdf_python-0.0.7.dist-info/RECORD,,