Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DonnC/deta_drive
A dart helper library for Deta Drive cloud storage
https://github.com/DonnC/deta_drive
Last synced: 3 days ago
JSON representation
A dart helper library for Deta Drive cloud storage
- Host: GitHub
- URL: https://github.com/DonnC/deta_drive
- Owner: DonnC
- License: bsd-3-clause
- Created: 2022-03-20T15:41:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T06:29:01.000Z (over 2 years ago)
- Last Synced: 2024-08-04T01:13:54.029Z (4 months ago)
- Language: Dart
- Size: 9.77 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-deta - Deta Drive Dart - A dart helper library for Deta Drive cloud storage. (SDK's / Dart SDK)
README
## Deta Drive Dart
A dart library for [**Deta**](https://docs.deta.sh/docs/) Drive Cloud Service## Very Important
**Please note, deta is ONLY used for SERVER side applications and not user applications, so do not use your keys in your flutter production apps as hackers can reverse engineer your code and access deta keys, for more check
the comment from [@detahq](https://twitter.com/detahq/status/1505893137012736002?s=20&t=wE2VzUwhMzpO3TvpElx0OA) on twitter**## Features
- Upload file to deta storage
- List deta files
- Delete deta files
- Download deta files
x - Chunked upload `TODO`## Getting started
`TL;DR`
Check out the amazing **Deta** [here](https://docs.deta.sh/docs/)## Usage
Check the [`/example`](example/) folder.
**There is a complete view with riverpod in the examples folderCreate Deta object
```dart
import 'package:deta_drive/deta_drive.dart';void main() async {
final _deta = Deta(projectId: 'projectId', projectKey: 'projectKey');final drive = DetaDrive(drive: 'drive-name', deta: _deta);
final drive2 = DetaDrive(drive: 'drive-name-2', deta: _deta);
// ... per your requirement
final myFiles = await drive.listFiles();print(myFiles);
}```
## Additional information
**ATTENTION**
Be smart, Keep your deta keys private