semvec/pypi-packages huggingface dataset:
filesystem-pysdk 2.0.0
python filesystem sdk
License: BSD-3-Clause
Requires Python: >=3.9,<4.0

# filesystem-pysdk

<!-- TOC -->

* [filesystem-pysdk](#filesystem-pysdk)
    * [I. Brief](#i-brief)
    * [II. Quick tutorial](#ii-quick-tutorial)
        * [1. create a client](#1-create-a-client)
        * [2. user manager](#2-user-manager)
        * [3. bucket manager](#3-bucket-manager)
        * [4. file manager](#4-file-manager)

<!-- TOC -->

python filesystem sdk: [filesystem project](https://github.com/i-curve/filesystem)

## I. Brief

a python client for [filesystem](https://github.com/i-curve/filesystem).

support user, bucket, file manager.

## II. Quick tutorial

### 1. create a client

```python
import filesystem_pysdk

client, err = filesystem_pysdk.new_client("user", "auth", "api_host", "web_host")
```

### 2. user manager

- create a user

```python
import filesystem_pysdk

client.add_user(filesystem_pysdk.User("user1"))
```

- delete a user

```python
client.delete_user("user1")
```

### 3. bucket manager

- create a new bucket

```python
import filesystem_pysdk

client.add_bucket(filesystem_pysdk.Bucket(name="bucket1"))
```

- delete a bucket

```python
client.delete_user(name="bucket1")
```

### 4. file manager

- upload file

```python
import filesystem_pysdk

with open("client.py", "rb") as f:
    client.upload_file(filesystem_pysdk.File("bucket1", "test/client.py", 0),
                       f)
```

- download file

```python
import filesystem_pysdk

res = client.download_file(filesystem_pysdk.File("bucket1", "test/client.py"))
with open("client_download.py", "wb") as f:
    f.write(res)
```

- file move

```python
import filesystem_pysdk

client.move_file(filesystem_pysdk.File("bucket1", "test/a.py"),
                 filesystem_pysdk.File("bucket1", "test/b.py"))
```

- file copy

```python
import filesystem_pysdk

client.move_file(filesystem_pysdk.File("bucket1", "test/a.py"),
                 filesystem_pysdk.File("bucket1", "test/b.py"))
```
xevent 0.4
Create event composites from xarray data.
License: BSD-3-Clause
Requires Python: >=3.10
Keywords: xarray,event,composite

# xevent

[![PyPI version](https://badge.fury.io/py/xevent.svg)](https://badge.fury.io/py/xevent)
[![Documentation Status](https://img.shields.io/badge/docs-latest-blue.svg)](https://ru35hub.pages.gitlab.lrz.de/xevent/)
[![pipeline status](https://gitlab.lrz.de/ru35hub/xevent/badges/main/pipeline.svg)](https://gitlab.lrz.de/ru35hub/xevent/-/commits/main)

 see docs: https://ru35hub.pages.gitlab.lrz.de/xevent/