Skip to content

Commit 2b94f8d

Browse files
committed
发布:1.0.1
1 parent ad1f5ad commit 2b94f8d

38 files changed

Lines changed: 603 additions & 100 deletions

‎README-EN.md‎

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
<p align="center">
2+
<a target="_blank" href='https://github.com/CoderWanFeng/python-office'>
3+
<img src="http://python4office.cn/images/github-nav.jpg" alt="github license"/>
4+
</a>
5+
</p>
6+
<p align="center">
7+
<strong>🍬python for office</strong>
8+
</p>
9+
<p align="center">
10+
👉 <a href="http://www.python4office.cn/">http://www.python4office.cn/</a> 👈
11+
</p>
12+
13+
14+
<p align="center" name="'github">
15+
<a target="_blank" href='https://github.com/CoderWanFeng/python-office'>
16+
<img src="https://img.shields.io/github/stars/CoderWanFeng/python-office.svg?style=social" alt="github star"/>
17+
</a>
18+
<a target="_blank" href='https://github.com/CoderWanFeng/python-office'>
19+
<img src="https://img.shields.io/github/contributors/CoderWanFeng/python-office" alt="github contributors"/>
20+
</a>
21+
<a target="_blank" href='https://github.com/CoderWanFeng/python-office'>
22+
<img src="https://img.shields.io/github/forks/CoderWanFeng/python-office" alt="github forks"/>
23+
</a>
24+
<a target="_blank" href='https://github.com/CoderWanFeng/python-office'>
25+
<img src="https://img.shields.io/github/issues/CoderWanFeng/python-office" alt="github issues"/>
26+
</a>
27+
<a target="_blank" href='https://github.com/CoderWanFeng/python-office'>
28+
<img src="https://img.shields.io/github/issues-pr/CoderWanFeng/python-office" alt="github license"/>
29+
</a>
30+
<a target="_blank" href='https://github.com/CoderWanFeng/python-office'>
31+
<img src="https://img.shields.io/github/license/CoderWanFeng/python-office" alt="github license"/>
32+
</a>
33+
</p>
34+
35+
<p align="center" name="gitee">
36+
<a target="_blank" href='https://gitee.com/CoderWanFeng/python-office/'>
37+
<img src='https://gitee.com/CoderWanFeng/python-office/badge/star.svg?theme=dark' alt='gitee star'/>
38+
</a>
39+
<a target="_blank" href='https://github.com/CoderWanFeng/python-office'>
40+
<img src="https://gitee.com/CoderWanFeng/python-office/badge/fork.svg?theme=dark" alt="gitee fork"/>
41+
</a>
42+
<a href="http://www.python4office.cn/images/qq.jpg">
43+
<img src="https://img.shields.io/badge/QQ-163434413-orange"/></a>
44+
</p>
45+
46+
47+
48+
49+
50+
-------------------------------------------------------------------------------
51+
52+
[**🌎中文文档**](README.md)
53+
54+
-------------------------------------------------------------------------------
55+
56+
## 📚 Description
57+
58+
*Python-office* is a third-party library on office automation,
59+
which do covers its most use cases.
60+
61+
We are devoted to provide functionalities out-of-the-box,
62+
allowing beginners to achieve their goals **in one line**,
63+
without any knowledge requirements on the python language.
64+
65+
### 🍺 Features
66+
67+
- Build your office automation environments **in one command**
68+
- Solve your problem in one line **without learning python**
69+
- Meet your need **right on your workplace**
70+
- Improve your efficiency **at zero cost**
71+
72+
-------------------------------------------------------------------------------
73+
74+
## 📦 Installation
75+
76+
### 🍊 using pip
77+
78+
```shell
79+
pip install -i https://mirrors.aliyun.com/pypi/simple/ python-office -U
80+
```
81+
82+
-------------------------------------------------------------------------------
83+
84+
## 📝 Documentation
85+
86+
[📘 Chinese Document](http://www.python4office.cn/python-office/profile/)
87+
88+
[🎬 Video Introduction](https://space.bilibili.com/259649365/channel/collectiondetail?sid=378950)
89+
90+
-------------------------------------------------------------------------------
91+
92+
## 🛠 Components
93+
94+
All components bellow are under construction for now.
95+
96+
| package | description |
97+
|---------|--------------------------------------------|
98+
| excel | excel processing |
99+
| word | word processing |
100+
| ppt | ppt processing |
101+
| pdf | pdf processing |
102+
| file | file system processing |
103+
| tools | efficient tools |
104+
| web | website helpers |
105+
| email | email processing |
106+
| image | image processing |
107+
| video | video processing |
108+
| ocr | character recognition & speech recognition |
109+
110+
You can import each module separately according to your requirements,
111+
or simply `import office` to import everything (not recommended).
112+
113+
-------------------------------------------------------------------------------
114+
115+
## 🏗 How to contribute
116+
117+
### 📐 Specifications
118+
119+
You are welcome to commit your code, following the specifications below:
120+
121+
Steps to participate in developing
122+
123+
- For example, you ought to add a `add` function
124+
1. your GitHub account is *demo*
125+
2. you create the **demo** directory in `./contributors`
126+
3. new `add.py`, in which you write your code
127+
4. finish editing, you commit a PR to the `master` branch (no matter on GitHub or gitee) with your naming proposal
128+
5. @CoderWanFeng receive it, test it, merge it and finally upload it to PyPI 🎉
129+
130+
### 📐 Code style
131+
132+
1. **Annotation.** you should explain each parameter and returns of every new function.
133+
Unit test is alternative. You are allowed to sign it.
134+
2. **Formatting.** Note that you can only format *your* own code.
135+
3. Please pull request to `master` branch directly, which stands for the published version on PyPI.
136+
*(This may change when contributors increase in the future)*
137+
4. If we close your issue/PR, ease it. This is our way to keep it clean.
138+
You can still discuss it, and we would reopen it when there exists an acknowledged solution.
139+
140+
### 🧬Steps to contribute
141+
142+
1. **fork** this repo (on GitHub or gitee)
143+
2. **clone** it to your local file system
144+
3. **modify** your code
145+
4. **commit & push** your changes to the remote repo
146+
5. **pull request** to the `master` branch after logging in to GitHub/gitee and fill some information
147+
6. **wait** for maintainers merging it
148+
149+
### 🎋 Instructions on the branches
150+
151+
This Repository contains 2 branches, listing as follows:
152+
153+
| branch | functionality |
154+
|-----------|-----------------------------------------------------|
155+
| `master` | main branch, published on PyPI, you should PR here |
156+
| `develop` | development branch, ~~idling in fact~~ |
157+
158+
### 🐞 Provide bug feedback or suggestions
159+
160+
Please ensure the relationship to this repo.
161+
Other issue (such as learning python) is not allowed.
162+
163+
- [gitee issue](https://gitee.com/CoderWanFeng/python-office/issues)
164+
- [GitHub issue](https://github.com/CoderWanFeng/python-office/issues)
165+
166+
-------------------------------------------------------------------------------
167+
168+
## 🪙 Support us
169+
170+
### 💳 Donation
171+
172+
Buy us a cup of coffee if you appreciate python-office. Thank you sincerely.
173+
174+
[donate to this project](https://gitee.com/CoderWanFeng/python-office)
175+
👈 the donation will be used to support the development of this project
176+
177+
[donate to @CoderWanFeng](http://python4office.cn/images/wechat-pay.jpg)
178+
179+
180+
-------------------------------------------------------------------------------
181+
182+
## ⭐Star python-office
183+
184+
[![Stargazers over time](https://starchart.cc/CoderWanFeng/python-office.svg)](https://starchart.cc/CoderWanFeng/python-office)
185+
186+
## 📌 WeChat official & our open source group
187+
188+
<div align="center">
189+
<img src="http://www.python4office.cn/images/account-display/10-gzh.jpg" height="150">
190+
<img src="https://www.python-office.com/api/img-cdn/python-office.jpg" height="150">
191+
</div>

‎contributors/bulabean/sedemo.xls‎

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
143 KB
Binary file not shown.

‎office/api/excel.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ def excel2pdf(excel_path, pdf_path, sheet_id: int = 0):
8787

8888

8989
# @instruction
90-
def merge2excel(excel_path, output='merge2excel.xlsx'):
91-
poexcel.merge2excel(excel_path, output)
90+
# def merge2excel(excel_path, output='merge2excel.xlsx'):
91+
# poexcel.merge2excel(excel_path, output)

‎office/api/ppt.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def ppt2img(input_path: str, output_path=r'./', merge: bool = False):
3737
"""
3838
poppt.ppt2img(input_path, output_path, merge)
3939

40+
4041
# @instruction
4142
def merge4ppt(input_path: str, output_path=r'./', output_name: str = 'merge4ppt.pptx'):
4243
poppt.merge4ppt(input_path, output_path, output_name)

‎office/api/video.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def mark2video(video_path, output_path=r'./', output_name=r'mark2video.mp4', mar
3535
"""
3636
povideo.mark2video(video_path, output_path, output_name, mark_str, font_size, font_type, font_color)
3737

38+
3839
# @instruction
3940
def txt2mp3(content='程序员晚枫', file=None, mp3=r'./程序员晚枫.mp3', speak=True):
4041
"""

‎office/api/web.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010

1111
import pospider
1212

13+
1314
def url2ebook(url, tile):
1415
pospider.url.url2ebook(url, tile)

0 commit comments

Comments
 (0)