semvec/pypi-packages huggingface dataset:
quantinsti-blog-zh 2022.12.12.0
Quantinsti 博客中文翻译
Requires Python: >=3.6

# Quantinsti 博客中文翻译

> 原文：[Quantinsti Blog](https://blog.quantinsti.com/)
> 
> 协议：[CC BY-NC-SA 4.0](http://creativecommons.org/licenses/by-nc-sa/4.0/)
> 
> 阶段：机翻（1）
> 
> 勇敢的人你可愿，为这份信念肩并肩？在这街垒的那一边，光明的未来可望见。你可听到这歌声？听鼓声在远方回响。未来与新希望同在，曙光在前方。——《悲惨世界》终曲
> 
> 列に入れよ、我らの味方に。砦の向こうに、憧れの世界。皆聞こえるか？ドラムの響が。彼ら夢見た明日が来るよ。
> 
> Will you joinin our crusade? Who will be strong and stand with me? Somewhere beyond the barricade, is there a world you long to see? Do you hear the people sing? Say, do youhear the distant drums? It is the future that they bring when tomorrow comes!

* [在线阅读](https://quantinsti.apachecn.org)
* [在线阅读（Gitee）](https://apachecn.gitee.io/doc-template/)
* [ApacheCN 学习资源](http://docs.apachecn.org/)
* [ApacheCN 翻译校对兼职群 713436582](https://jq.qq.com/?_wv=1027&k=VSNtgpjb)

## 贡献指南

为了不断改进翻译质量，我们特此启动了【翻译、校对、笔记整理活动】，开设了多个校对项目。贡献者校对一章之后可以领取千字2\~4元的奖励。进行中的校对活动请见[活动列表](https://home.apachecn.org/#/docs/activity/docs-activity)。更多详情请联系飞龙（Q562826179，V:wizardforcel）。

## 联系方式

### 负责人

* [飞龙](https://github.com/wizardforcel): 562826179

### 其他

*   在我们的 [apachecn/quantinsti-blog-zh](https://github.com/apachecn/quantinsti-blog-zh) github 上提 issue.
*   发邮件到 Email: `apachecn@163.com`.
*   在我们的 [组织学习交流群](https://www.apachecn.org/#/docs/join) 中联系群主/管理员即可.

## 下载

### Docker

```
docker pull apachecn0/quantinsti-blog-zh
docker run -tid -p <port>:80 apachecn0/quantinsti-blog-zh
# 访问 http://localhost:{port} 查看文档
```

### PYPI

```
pip install quantinsti-blog-zh
quantinsti-blog-zh <port>
# 访问 http://localhost:{port} 查看文档
```

### NPM

```
npm install -g quantinsti-blog-zh
quantinsti-blog-zh <port>
# 访问 http://localhost:{port} 查看文档
```

## 其它协议

霞鹜文楷采用 [SIL 开放字体协议 1.1](https://github.com/lxgw/LxgwWenKai/blob/main/SIL_Open_Font_License_1.1.txt)。

## 赞助我们

![](http://data.apachecn.org/img/about/donate.jpg)
baofu-func 0.0.2
公共方法库
Requires Python: >=3

## 公共方法库
- oss
- 企业微信告警
- 日志模块
- retrying重试装饰器
- cost耗时装饰器
- generate_mongo_ts 大数据量的MongoDB调度
- 各种数据清洗方法
smart-on-fhir-client 1.0.4
Smart on fhir python client
Requires Python: >=3.10,<4.0

# smart-on-fhir-client 🔥

Package allowing to request a fhir server with the smart-on-fhir protocol. 

> ℹ Warning
>
> It is not a webserver providing a webserver with a callback url
> usually involved in the smart-on-fhir procedure


### Tutorial

First, we will need to create a partner. We can do this easily subclassing the `Partner` class.
```python
import os
from smart_on_fhir_client.partner import Partner
from smart_on_fhir_client.strategy import Strategy

class OauthFHIRProvider(Partner):
    name = 'PROVIDER'
    supported_strategies: set[Strategy] = {Strategy.M2M}
    client_id: str = os.getenv("PROVIDER_CLIENT_ID")
    client_secret: str = os.getenv("PROVIDER_CLIENT_SECRET")
    token_url: str = ... # set the token url
    fhir_url: str = ... # set the fhir url

    # additional information
    audience: str = ... # audience
    database_reference: str = ... # optional 
    grant_type: str = "client_credentials" # set the credentials

FHIR_PROVIDER = OauthFHIRProvider()
```

```python
from smart_on_fhir_client.client import smart_client_factory
from smart_on_fhir_client.requester.fhir_requester import fhir_client_manager
from smart_on_fhir_client.strategy import Strategy

# set up your own fhir server url
fhir_client_manager.set_own_fhir_url("http://localhost:8080/fhir")


async def register():
    async with smart_client_factory:
        await fhir_client_manager.register_fhir_client_async(
            smart_client_factory.builder()
            .for_partner(FHIR_PROVIDER)
            .for_strategy(Strategy.M2M)
            # you can register special classes for specific fhir resources
            .register_cls_for('Patient', CustomPatientResource)
        )
        first_patient = await fhir_client_manager.patient.search().limit(10).first()
        await first_patient.pipe_to_target_fhir_server()

```


### Features

Allow to send some fetched fhir resources to another fhir server
via the `pipe_to_target_fhir_server`, making data transfer between two fhir
servers easier.

### Notes
Work based heavily on fhir-py and fhir-resources python packages