Skip to content

Commit 7394e65

Browse files
committed
2 parents 6ccf8db + 504aa24 commit 7394e65

File tree

11 files changed

+738
-15
lines changed

11 files changed

+738
-15
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
custom: ['https://afdian.net/a/atianxiua']
1+
open_collective: python-openbmclapi

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
<div align="center">
22

3-
![](https://7507.kstore.space/logo-full.svg?password=44d43eb4b2becd5f936b1c8a3c97df9d-1714584375234)
3+
<picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="https://socialify.git.ci/TTB-Network/python-openbmclapi/image?description=1&font=Inter&language=1&logo=https%3A%2F%2Fpython-openbmclapi.ttb-network.top%2Fimg%2Flogo.svg&name=1&owner=1&pattern=Plus&theme=Dark">
5+
<source media="(prefers-color-scheme: light)" srcset="https://socialify.git.ci/TTB-Network/python-openbmclapi/image?description=1&font=Inter&language=1&logo=https%3A%2F%2Fpython-openbmclapi.ttb-network.top%2Fimg%2Flogo.svg&name=1&owner=1&pattern=Plus&theme=Light">
6+
<img src="https://socialify.git.ci/TTB-Network/python-openbmclapi/image?description=1&font=Inter&language=1&logo=https%3A%2F%2Fpython-openbmclapi.ttb-network.top%2Fimg%2Flogo.svg&name=1&owner=1&pattern=Plus&theme=Auto">
7+
</picture>
48

59
# OpenBMCLAPI for Python
610

11+
简体中文 | [English](/i18n/README_en.md)
12+
713
![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-pr/TTB-Network/python-openbmclapi)
814
![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/TTB-Network/python-openbmclapi)
915
![GitHub License](https://img.shields.io/github/license/TTB-Network/python-openbmclapi)
1016
![GitHub Release](https://img.shields.io/github/v/release/TTB-Network/python-openbmclapi)
1117
![GitHub Tag](https://img.shields.io/github/v/tag/TTB-Network/python-openbmclapi)
18+
![Docker Pulls](https://img.shields.io/docker/pulls/silianz/python-openbmclapi)
19+
[![Crowdin](https://badges.crowdin.net/python-openbmclapi-site/localized.svg)](https://crowdin.com/project/python-openbmclapi-site)
1220
![GitHub Repo stars](https://img.shields.io/github/stars/TTB-Network/python-openbmclapi)
1321
[![CodeQL](https://github.com/TTB-Network/python-openbmclapi/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/TTB-Network/python-openbmclapi/actions/workflows/github-code-scanning/codeql)
1422
[![Create tagged release](https://github.com/TTB-Network/python-openbmclapi/actions/workflows/build_and_publish.yml/badge.svg)](https://github.com/TTB-Network/python-openbmclapi/actions/workflows/build_and_publish.yml)
@@ -35,6 +43,8 @@
3543

3644
如果你有能力,你可以向我们的仓库提交 Pull Request 或 Issue。
3745

46+
如果你想帮助我们进行多语言翻译,请前往 [Crowdin](https://translate.bugungu.top)
47+
3848
在贡献之前,请先阅读我们的[贡献准则](./CONTRIBUTING.md)
3949

4050
# 鸣谢

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.1.4
1+
v1.2.1

config/config.yml.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
advanced:
22
auto_update: false
3-
copy_from_other_storage: true
3+
copy_from_another_storage: true
44
debug: false
55
download_threads: 64
66
file_check_mode: size
@@ -20,6 +20,8 @@ cache:
2020
time: 1800
2121
cluster:
2222
byoc: false
23+
download_access_logs: true
24+
download_retry_delay: 60
2325
enable: true
2426
id: ''
2527
public_host: ''

core/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"cluster.timeout.keepalive": 300,
1717
"cluster.reconnect.delay": 60,
1818
"cluster.reconnect.retry": -1,
19-
"cluster.download.access_logs": True,
20-
"cluster.download.retry_delay": 60,
19+
"cluster.download_access_logs": True,
20+
"cluster.download_retry_delay": 60,
2121
"cache.buffer": 536870912,
2222
"cache.time": 1800,
2323
"cache.check": 360,

crowdin.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
files:
2+
- source: /i18n/zh_cn.json
3+
translation: /i18n/%locale%.json
4+
- source: /**.md
5+
translation: /i18n/%file_name%_%language%.md

i18n/CODE_OF_CONDUCT_en.md

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
- 注重社区共同诉求,而非个人得失
26+
27+
Examples of unacceptable behavior include:
28+
29+
- The use of sexualized language or imagery, and sexual attention or advances of
30+
any kind
31+
- Trolling, insulting or derogatory comments, and personal or political attacks
32+
- Public or private harassment
33+
- Publishing others' private information, such as a physical or email address,
34+
without their explicit permission
35+
- Other conduct which could reasonably be considered inappropriate in a
36+
professional setting
37+
38+
## Enforcement Responsibilities
39+
40+
Community leaders are responsible for clarifying and enforcing our standards of
41+
acceptable behavior and will take appropriate and fair corrective action in
42+
response to any behavior that they deem inappropriate, threatening, offensive,
43+
or harmful.
44+
45+
Community leaders have the right and responsibility to remove, edit, or reject
46+
comments, commits, code, wiki edits, issues, and other contributions that are
47+
not aligned to this Code of Conduct, and will communicate reasons for moderation
48+
decisions when appropriate.
49+
50+
## Scope
51+
52+
**Consequence**: A warning with consequences for continued behavior. No
53+
interaction with the people involved, including unsolicited interaction with
54+
those enforcing the Code of Conduct, for a specified period of time. This
55+
includes avoiding interactions in community spaces as well as external channels
56+
like social media. Violating these terms may lead to a temporary or permanent
57+
ban.
58+
59+
This Code of Conduct applies within all community spaces, and also applies when
60+
an individual is officially representing the community in public spaces.
61+
Examples of representing our community include using an official email address,
62+
posting via an official social media account, or acting as an appointed
63+
representative at an online or offline event.
64+
65+
## Enforcement
66+
67+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
68+
reported to the community leaders responsible for enforcement at [administrator@ttb-network.top](mailto://administrator@ttb-network.top).
69+
All complaints will be reviewed and investigated promptly and fairly.
70+
71+
All community leaders are obligated to respect the privacy and security of the
72+
reporter of any incident.
73+
74+
## 处理方针
75+
76+
Community leaders will follow these Community Impact Guidelines in determining
77+
the consequences for any action they deem in violation of this Code of Conduct:
78+
79+
### 1. Correction
80+
81+
**Community Impact**: Use of inappropriate language or other behavior deemed
82+
unprofessional or unwelcome in the community.
83+
84+
**Consequence**: A private, written warning from community leaders, providing
85+
clarity around the nature of the violation and an explanation of why the
86+
behavior was inappropriate. A public apology may be requested.A public apology may be requested.
87+
88+
### 2. Warning
89+
90+
**Community Impact**: A violation through a single incident or series of
91+
actions.
92+
93+
**Consequence**: A warning with consequences for continued behavior.No
94+
interaction with the people involved, including unsolicited interaction with
95+
those enforcing the Code of Conduct, for a specified period of time.This
96+
includes avoiding interactions in community spaces as well as external channels
97+
like social media.Violating these terms may lead to a temporary or permanent
98+
ban.
99+
100+
### 3. Temporary Ban
101+
102+
**Community Impact**: A serious violation of community standards, including
103+
sustained inappropriate behavior.
104+
105+
**Consequence**: A temporary ban from any sort of interaction or public
106+
communication with the community for a specified period of time. No public or
107+
private interaction with the people involved, including unsolicited interaction
108+
with those enforcing the Code of Conduct, is allowed during this period.
109+
Violating these terms may lead to a permanent ban.No public or
110+
private interaction with the people involved, including unsolicited interaction
111+
with those enforcing the Code of Conduct, is allowed during this period.Violating these terms may lead to a permanent ban.
112+
113+
### 4. Permanent Ban
114+
115+
**Community Impact**: Demonstrating a pattern of violation of community
116+
standards, including sustained inappropriate behavior, harassment of an
117+
individual, or aggression toward or disparagement of classes of individuals.
118+
119+
**Consequence**: A permanent ban from any sort of public interaction within the
120+
community.
121+
122+
## Attribution
123+
124+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
125+
version 2.1, available at
126+
[https://www.contributor-covenant.org/version/2/1/code\_of\_conduct.html][v2.1].
127+
128+
Community Impact Guidelines were inspired by
129+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
130+
131+
For answers to common questions about this code of conduct, see the FAQ at
132+
[https://www.contributor-covenant.org/faq][FAQ].
133+
Translations are available at
134+
[https://www.contributor-covenant.org/translations][translations].
135+
136+
[homepage]: https://www.contributor-covenant.org
137+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
138+
[Mozilla CoC]: https://github.com/mozilla/diversity
139+
[FAQ]: https://www.contributor-covenant.org/faq
140+
[translations]: https://www.contributor-covenant.org/translations

0 commit comments

Comments
 (0)