CloudVE / CloudVE/cloudbridge

Introduce a collections/filtering mechanism for CloudBridge

Open
#91 0 comments 0 reactions 0 assignees View on GitHub
enhancement hacktoberfest
Dominant language
Python
Stars
117
Forks
51
Avg merge
9h 17m
Merged PRs (30d)
5

Description

It would be nice to support a Django like query syntax for searching and filtering objects, which is something that Boto3 also supports.

For example, in Boto3, it's possible to filter a collection as follows:
```
bucket.objects.filter(Prefix='photos/'):
```

These collection filters can also be chained:
```
bucket.objects.filter(Prefix='photos/').limit(10).page_size(5):
```
You can also perform batch actions, for example:
```
s3.Bucket('my-bucket').objects.delete()
```
Which would delete all objects within the bucket. As with Django, the filters are lazily evaluated.

Reference:
https://boto3.readthedocs.io/en/latest/guide/collections.html
https://docs.djangoproject.com/en/1.11/ref/models/querysets/

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.