Files.com 1.4.184__tar.gz → 1.4.185__tar.gz
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.
- {Files.com-1.4.184 → Files.com-1.4.185}/Files.com.egg-info/PKG-INFO +1 -1
- {Files.com-1.4.184 → Files.com-1.4.185}/PKG-INFO +1 -1
- {Files.com-1.4.184 → Files.com-1.4.185}/README.md +72 -53
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/__init__.py +1 -1
- {Files.com-1.4.184 → Files.com-1.4.185}/Files.com.egg-info/SOURCES.txt +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/Files.com.egg-info/dependency_links.txt +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/Files.com.egg-info/requires.txt +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/Files.com.egg-info/top_level.txt +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/api.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/api_client.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/error.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/list_obj.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/__init__.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/account_line_item.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/action.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/action_notification_export.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/action_notification_export_result.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/api_key.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/api_request_log.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/app.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/as2_incoming_message.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/as2_outgoing_message.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/as2_partner.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/as2_station.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/auto.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/automation.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/automation_log.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/automation_run.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/bandwidth_snapshot.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/behavior.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/bundle.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/bundle_action.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/bundle_download.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/bundle_notification.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/bundle_path.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/bundle_recipient.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/bundle_registration.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/clickwrap.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/dns_record.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/email_incoming_message.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/email_log.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/errors.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/exavault_api_request_log.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/external_event.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/file.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/file_action.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/file_comment.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/file_comment_reaction.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/file_migration.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/file_migration_log.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/file_upload_part.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/folder.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/form_field.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/form_field_set.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/ftp_action_log.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/gpg_key.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/group.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/group_user.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/history.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/history_export.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/history_export_result.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/image.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/inbox_recipient.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/inbox_registration.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/inbox_upload.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/invoice.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/invoice_line_item.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/ip_address.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/lock.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/message.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/message_comment.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/message_comment_reaction.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/message_reaction.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/notification.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/outbound_connection_log.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/payment.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/payment_line_item.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/permission.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/preview.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/priority.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/project.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/public_hosting_request_log.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/public_ip_address.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/public_key.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/remote_server.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/remote_server_configuration_file.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/request.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/session.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/settings_change.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/sftp_action_log.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/sftp_host_key.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/share_group.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/share_group_member.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/siem_http_destination.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/site.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/snapshot.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/sso_strategy.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/status.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/style.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/sync_log.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/usage_daily_snapshot.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/usage_snapshot.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/user.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/user_cipher_use.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/user_request.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/user_sftp_client_use.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/web_dav_action_log.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/webhook_test.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/path_util.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/util.py +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/pyproject.toml +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/setup.cfg +0 -0
- {Files.com-1.4.184 → Files.com-1.4.185}/setup.py +0 -0
|
@@ -508,116 +508,117 @@ files_sdk.error.FolderAdminPermissionRequiredError -> files_sdk.error.NotAuthori
|
|
|
508
508
|
|`TrialLockedError`| `SiteConfigurationError` |
|
|
509
509
|
|`UserRequestsEnabledRequiredError`| `SiteConfigurationError` |
|
|
510
510
|
|
|
511
|
-
##
|
|
512
|
-
|
|
513
|
-
Files.com publishes a Files.com API server, which is useful for testing your use of the Files.com
|
|
514
|
-
SDKs and other direct integrations against the Files.com API in an integration test environment.
|
|
515
|
-
|
|
516
|
-
It is a Ruby app that operates as a minimal server for the purpose of testing basic network
|
|
517
|
-
operations and JSON encoding for your SDK or API client. It does not maintain state and it does not
|
|
518
|
-
deeply inspect your submissions for correctness.
|
|
519
|
-
|
|
520
|
-
Eventually we will add more features intended for integration testing, such as the ability to
|
|
521
|
-
intentionally provoke errors.
|
|
522
|
-
|
|
523
|
-
Download the server as a Docker image via [Docker Hub](https://hub.docker.com/r/filescom/files-mock-server).
|
|
524
|
-
|
|
525
|
-
The Source Code is also available on [GitHub](https://github.com/Files-com/files-mock-server).
|
|
526
|
-
|
|
527
|
-
A README is available on the GitHub link.
|
|
528
|
-
|
|
529
|
-
## File/Folder Operations
|
|
530
|
-
|
|
531
|
-
This SDK allows both file-based transfer and data-based transfer. Please see the examples below.
|
|
511
|
+
## Examples
|
|
532
512
|
|
|
533
513
|
### Upload
|
|
534
514
|
|
|
535
|
-
|
|
515
|
+
#### Upload a File
|
|
536
516
|
|
|
537
517
|
```python
|
|
538
|
-
files_sdk.file.upload_file("local.txt", "
|
|
518
|
+
files_sdk.file.upload_file("local.txt", "remote.txt")
|
|
539
519
|
```
|
|
540
520
|
|
|
541
521
|
If the parent directories do not already exist, they can be automatically created by passing
|
|
542
522
|
`mkdir_parents` in the `params`.
|
|
543
523
|
|
|
544
524
|
```python
|
|
545
|
-
files_sdk.file.upload_file("local.txt", "
|
|
525
|
+
files_sdk.file.upload_file("local.txt", "uploads/remote.txt", params={"mkdir_parents": True})
|
|
546
526
|
```
|
|
547
527
|
|
|
548
|
-
####
|
|
528
|
+
#### Write File Data
|
|
549
529
|
|
|
550
530
|
```python
|
|
551
531
|
with files_sdk.file.open("foo.txt", 'w') as f:
|
|
552
532
|
f.write("contents")
|
|
553
533
|
```
|
|
554
534
|
|
|
555
|
-
|
|
535
|
+
Or, for binary data:
|
|
556
536
|
|
|
557
537
|
```python
|
|
558
538
|
with files_sdk.file.open("foo.txt", 'wb') as f:
|
|
559
539
|
f.write(b"contents")
|
|
560
540
|
```
|
|
561
541
|
|
|
562
|
-
|
|
542
|
+
#### Create a Folder
|
|
543
|
+
|
|
544
|
+
```python
|
|
545
|
+
files_sdk.folder.create("path/to/folder/to/be/created", params={"mkdir_parents": True})
|
|
546
|
+
```
|
|
563
547
|
|
|
564
|
-
|
|
548
|
+
### Download
|
|
565
549
|
|
|
566
|
-
|
|
550
|
+
#### Download a File
|
|
567
551
|
|
|
568
552
|
```python
|
|
569
|
-
files_sdk.file.download_file("
|
|
553
|
+
files_sdk.file.download_file("remote.txt", "local.txt")
|
|
570
554
|
```
|
|
571
555
|
|
|
572
|
-
####
|
|
556
|
+
#### Read File Data
|
|
573
557
|
|
|
574
558
|
```python
|
|
575
|
-
with files_sdk.open("foo.txt", 'r') as f:
|
|
559
|
+
with files_sdk.file.open("foo.txt", 'r') as f:
|
|
576
560
|
print(f.read())
|
|
577
561
|
```
|
|
578
562
|
|
|
579
|
-
|
|
563
|
+
Or, for binary data:
|
|
580
564
|
|
|
581
565
|
```python
|
|
582
|
-
with files_sdk.open("foo.txt", 'rb') as f:
|
|
566
|
+
with files_sdk.file.open("foo.txt", 'rb') as f:
|
|
583
567
|
print(f.read())
|
|
584
568
|
```
|
|
585
569
|
|
|
586
570
|
### List
|
|
587
571
|
|
|
572
|
+
#### List Folder Contents
|
|
573
|
+
|
|
574
|
+
There are two ways to list folder contents:
|
|
575
|
+
1. `auto_paging_iter` - automatically paginates and loads each page into memory
|
|
576
|
+
2. `load_next_page/has_next_page` - manually paginates and loads each page into memory
|
|
577
|
+
|
|
588
578
|
```python
|
|
589
|
-
for
|
|
590
|
-
print(
|
|
579
|
+
for item in files_sdk.folder.list_for("remote/path/to/folder/").auto_paging_iter():
|
|
580
|
+
print(item.type, item.path)
|
|
591
581
|
```
|
|
592
582
|
|
|
593
|
-
|
|
583
|
+
```python
|
|
584
|
+
list_obj = files_sdk.folder.list_for('remote/path/to/folder/')
|
|
585
|
+
|
|
586
|
+
while True:
|
|
587
|
+
for item in list_obj:
|
|
588
|
+
print(item.type, item.path)
|
|
589
|
+
if not list_obj.has_next_page:
|
|
590
|
+
break
|
|
591
|
+
list_obj.load_next_page()
|
|
592
|
+
```
|
|
594
593
|
|
|
595
|
-
|
|
596
|
-
which contains a single page of records. It has a built-in `auto_paging_iter`
|
|
597
|
-
method to iterate through the pages, making the additional API calls
|
|
598
|
-
as needed.
|
|
594
|
+
### Copy
|
|
599
595
|
|
|
600
|
-
|
|
596
|
+
The copy method works for both files and folders.
|
|
601
597
|
|
|
602
598
|
```python
|
|
603
|
-
|
|
599
|
+
files_sdk.file.copy("source/path", params={"destination": "destination/path"})
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
### Move
|
|
604
603
|
|
|
605
|
-
for
|
|
606
|
-
|
|
604
|
+
The move method works for both files and folders.
|
|
605
|
+
|
|
606
|
+
```python
|
|
607
|
+
files_sdk.file.move("source/path", params={"destination": "destination/path"})
|
|
607
608
|
```
|
|
608
609
|
|
|
609
|
-
|
|
610
|
+
### Delete
|
|
611
|
+
|
|
612
|
+
The delete method works for both files and folders.
|
|
610
613
|
|
|
611
614
|
```python
|
|
612
|
-
|
|
615
|
+
files_sdk.file.delete("path/to/file/or/folder")
|
|
616
|
+
```
|
|
613
617
|
|
|
614
|
-
|
|
615
|
-
print(f.type, f.path)
|
|
618
|
+
In case the folder is not empty, you can use the `recursive` argument:
|
|
616
619
|
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
for f in list_obj:
|
|
620
|
-
print(f.type, f.path)
|
|
620
|
+
```python
|
|
621
|
+
files_sdk.file.delete("path/to/folder", params={"recursive": True})
|
|
621
622
|
```
|
|
622
623
|
|
|
623
624
|
### Comparing Case-Insensitive Files and Paths
|
|
@@ -628,3 +629,21 @@ For related documentation see [Case Sensitivity Documentation](https://www.files
|
|
|
628
629
|
if files_sdk.path_util.is_same("Fïłèńämê.Txt", "filename.txt"):
|
|
629
630
|
print("Paths are the same")
|
|
630
631
|
```
|
|
632
|
+
|
|
633
|
+
## Mock Server
|
|
634
|
+
|
|
635
|
+
Files.com publishes a Files.com API server, which is useful for testing your use of the Files.com
|
|
636
|
+
SDKs and other direct integrations against the Files.com API in an integration test environment.
|
|
637
|
+
|
|
638
|
+
It is a Ruby app that operates as a minimal server for the purpose of testing basic network
|
|
639
|
+
operations and JSON encoding for your SDK or API client. It does not maintain state and it does not
|
|
640
|
+
deeply inspect your submissions for correctness.
|
|
641
|
+
|
|
642
|
+
Eventually we will add more features intended for integration testing, such as the ability to
|
|
643
|
+
intentionally provoke errors.
|
|
644
|
+
|
|
645
|
+
Download the server as a Docker image via [Docker Hub](https://hub.docker.com/r/filescom/files-mock-server).
|
|
646
|
+
|
|
647
|
+
The Source Code is also available on [GitHub](https://github.com/Files-com/files-mock-server).
|
|
648
|
+
|
|
649
|
+
A README is available on the GitHub link.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/action_notification_export_result.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{Files.com-1.4.184 → Files.com-1.4.185}/files_sdk/models/remote_server_configuration_file.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|