semvec/pypi-packages huggingface dataset:
hhzoss 0.0.2
oss tool
License: MIT

## oss2 SDK简单封装

oss 简单封装， 主要是为了统一上传文件的路径，提升易用性。在默认情况下上传的模型或者上传的文件都会到固定的oss路径下，如需要修改路径可以使用HhzOssClient类中的方法set_remote_path进行设置。默认路径如下：

1、oss模型默认路径   
default_model_path = "/oss/ml-model-oss/ml-tensorflow-serving"     
2、oss文件默认路径   
default_file_path  = "/oss/ml-model-oss/ml-ai-middle-platform"  


#### 1、上传模型示例

````python
import hhzoss
# 创建oss对象
oss_client = hhzoss.HhzOssClient(
    internal_endpoint = *, 
    oss_access_id     = *, 
    oss_access_key    = *, 
    bucket_name       = *
)

# 将模型上传至oss
# 例如：模型 /data/20230412  如下：
# ├── 20230412
# │   ├── assets
# │   ├── saved_model.pb
# │   └── variables
# │       ├── variables.data-00000-of-00002
# │       ├── variables.data-00001-of-00002
# │       └── variables.index

'''
put_model_to_oss：将模型上传至oss【默认情况下会上传至oss的固定路径default_model_path下， 如需修改可以使用HhzOssClient类方法set_remote_path(remote_oss_path, path_type="model_path") 设置】

参数local_model_path：本地模型文件夹
参数model_name：模型名称（用“-”分割， 如："wide-deep"）
'''
oss_client.put_model_to_oss(local_model_path="/data/20230412", model_name="wide-deep")
````

#### 2、上传文件示例

```python
import hhzoss
# 创建oss对象
oss_client = hhzoss.HhzOssClient(
    internal_endpoint = *, 
    oss_access_id     = *, 
    oss_access_key    = *, 
    bucket_name       = *
)
'''
put_file_to_oss方法
将本地文件上传至oss【默认情况下会上传至oss的固定路径default_file_path下， 如需修改可以使用HhzOssClient类方法set_remote_path(remote_oss_path, path_type="file_path") 设置】
'''
oss_client.put_file_to_oss(local_file_path="/data/20230412/saved_model.pb")
```

#### 3、上传文件夹示例

```python
import hhzoss
# 创建oss对象
oss_client = hhzoss.HhzOssClient(
    internal_endpoint = *, 
    oss_access_id     = *, 
    oss_access_key    = *, 
    bucket_name       = *
)
'''
put_floder_to_oss(self, local_floder, remote_path):

'''
# 将/data/20230412 上传至远程oss路径/oss/ml-model-oss下
oss_client.put_floder_to_oss(local_floder="/data/20230412", remote_path="/oss/ml-model-oss")
```
inspector-django 0.1.3
Real-time Code Execution Monitoring of your Django applications.
License: MIT

# Inspector | Code Execution Monitoring Tool

Inspector is a Code Execution Monitoring tool to help developers find out technical problems in their application automatically, before customers do.

## Requirements

- Python >= 3.x
- Django >= 3.x

## Install
Install the latest version of the package from [PyPI](https://pypi.org/project/inspector-django/):

```shell
pip install inspector-django
```

## Configure the Ingestion Key
In `settings.py` add the ingestion key of your project:

```python
INSPECTOR_INGESTION_KEY = "xxxxxxxxx"
```

### Get a new Ingestion Key
You can get a new key creating a new project in your [Inspector dashboard](https://app.inspector.dev).

## Activate the module
Add `inspector_django` to installed apps:

```python
INSTALLED_APPS = [
    ....,
 	
    'inspector_django',
]
```

## Register the middleware
To monitor the incoming HTTP traffic you need to register the middleware. 

We suggest to add the middleware at the top of the list:

```python
MIDDLEWARE = [
	'inspector_django.InspectorMiddleware',
	
	....
]
```

## Ignore URLs
It could be needed to exclude some parts of your application from your monitoring data. 
It could be something that doesn't impact your user experience, or if you prefer to focus your attention 
on a small part of your system.

The `INSPECTOR_IGNORE_URL` also support wildcards:

```python
INSPECTOR_IGNORE_URL = [
     'static*',
     'media*'
     'assets*',
     'js*',
     'css*',
]
```

This is the default array. You have to copy this property in your `settings.py` file 
and then add your custom entries. 

## Official documentation
Checkout our [official documentation](https://docs.inspector.dev/guides/django) for more detailed tutorial.

## License
This library is licensed under the [MIT](LICENSE) license.