Skip to content

Commit cc57020

Browse files
Merge pull request bepasty#336 from ThomasWaldmann/typos-grammar
fix typos and grammar
2 parents 40622d7 + af7a52a commit cc57020

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+405
-379
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
steps:
7171
- uses: actions/checkout@v3
7272
with:
73-
# just fetching 1 commit is not enough for setuptools-scm, so we fetch all
73+
# Fetching only the latest commit is not enough for setuptools-scm; fetch full history
7474
fetch-depth: 0
7575
- name: Set up Python ${{ matrix.python-version }}
7676
uses: actions/setup-python@v4
@@ -80,7 +80,7 @@ jobs:
8080
run: |
8181
python -m pip install --upgrade pip setuptools wheel
8282
pip install -r requirements.d/dev.txt
83-
- name: run pytest via tox
83+
- name: Run pytest via tox
8484
run: |
8585
tox --skip-missing-interpreters
8686
- name: Upload coverage to Codecov

MANIFEST.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# stuff we need to include into the sdist is handled automatically by
2-
# setuptools_scm - it includes all git-committed files.
3-
# but we want to exclude some committed files/dirs not needed in the sdist:
1+
# The files to include in the sdist are handled automatically by
2+
# setuptools_scm it includes all Git-committed files.
3+
# However, we want to exclude some committed files/dirs not needed in the sdist:
44
exclude .gitattributes .gitignore .github

docs/source/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Welcome to bepasty's documentation!
1+
Welcome to Bepasty’s documentation!
22
===================================
33

4-
bepasty is like a pastebin for every kind of file (text, image, audio, video, documents, ...).
4+
Bepasty is like a pastebin for every kind of file (text, image, audio, video, documents, ).
55

6-
You can upload multiple files at once, simply by drag and drop.
6+
You can upload multiple files at once by simply dragging and dropping them.
77

88
Contents
99
--------

docs/source/install-tutorial.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11

22
=====================================================
3-
Installation tutorial with Debian, NGinx and gunicorn
3+
Installation tutorial with Debian, Nginx and Gunicorn
44
=====================================================
55

6-
preliminary packages:
6+
Preliminary packages:
77

88
::
99

1010
apt-get install build-essential nginx supervisor python-dev git-core python-pip python-virtualenv
1111

1212

13-
commands to run
13+
Commands to run
1414

1515
::
1616

1717
# add user bepasty to system
1818
adduser bepasty
1919
# change to user bepasty
2020
sudo su - bepasty
21-
# clone repository from github
21+
# clone repository from GitHub
2222
git clone https://github.com/bepasty/bepasty-server.git repo
2323
# create folder for storage
2424
mkdir storage
@@ -34,20 +34,20 @@ commands to run
3434
# add gunicorn and gevent for hosting
3535
pip install gunicorn gevent
3636

37-
config file for bepasty -- ``/home/bepasty/bepasty.conf``:
37+
Config file for Bepasty — ``/home/bepasty/bepasty.conf``:
3838

3939
Copy ``src/bepasty/config.py`` to ``/home/bepasty/bepasty.conf`` first,
4040
remove the ``class Config`` and remove all indents in the file.
4141
The comments can be removed too, if you feel the need to.
42-
At last modify these two configs variables:
42+
Finally, modify these two configuration variables:
4343

4444
::
4545

4646
STORAGE = 'filesystem'
4747
STORAGE_FILESYSTEM_DIRECTORY = '/home/bepasty/storage/'
4848

4949

50-
add this content to ``/home/bepasty/bin/gunicorn_bepasty``:
50+
Add this content to ``/home/bepasty/bin/gunicorn_bepasty``:
5151

5252
::
5353

@@ -74,7 +74,7 @@ add this content to ``/home/bepasty/bin/gunicorn_bepasty``:
7474

7575
Make it executable: ``chmod +x ~/bin/gunicorn_bepasty``
7676

77-
A nginx configuration i.e. in ``/etc/nginx/conf.d/bepasty.conf``:
77+
An Nginx configuration, e.g., in ``/etc/nginx/conf.d/bepasty.conf``:
7878

7979
::
8080

@@ -102,7 +102,7 @@ A nginx configuration i.e. in ``/etc/nginx/conf.d/bepasty.conf``:
102102
}
103103
}
104104

105-
Now reload your nginx configuration: `service nginx reload`.
105+
Now reload your Nginx configuration: `service nginx reload`.
106106

107107
Supervisord config i.e. in ``/etc/supervisor/conf.d/bepasty.conf``:
108108

@@ -114,4 +114,4 @@ Supervisord config i.e. in ``/etc/supervisor/conf.d/bepasty.conf``:
114114
stdout_logfile = /home/bepasty/logs/gunicorn_supervisor.log ; Where to write log messages
115115
redirect_stderr = true ; Save stderr in the same log
116116

117-
Finally reload supervisor: `service supervisor reload`
117+
Finally, reload supervisor: `service supervisor reload`

docs/source/project.rst

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
============================
2-
The bepasty software Project
2+
The Bepasty Software Project
33
============================
44

55
History
66
=======
77

8-
The initial version of the bepasty(-server) software was developed in 48h in the WSGI Wrestle 2013 contest by:
8+
The initial version of the Bepasty (-server) software was developed in 48 hours during the WSGI Wrestle 2013 contest by:
99

1010
* `Bastian Blank <[email protected]>`_
1111
* `Christian Fischer <[email protected]>`_
@@ -14,8 +14,7 @@ The initial version of the bepasty(-server) software was developed in 48h in the
1414
Project site
1515
============
1616

17-
Source code repository, issue tracker (bugs, ideas about enhancements, todo,
18-
feedback, ...), link to documentation is all there:
17+
Source code repository, issue tracker (bugs, enhancement ideas, to-dos, feedback, …), and a link to the documentation are all there:
1918

2019
https://github.com/bepasty/
2120

@@ -25,11 +24,11 @@ Contributing
2524

2625
Feedback is welcome.
2726

28-
If you find some issue, have some idea or some patch, please submit them via the issue tracker.
27+
If you find an issue, have an idea, or a patch, please submit it via the issue tracker.
2928

30-
Or even better: if you use git, fork our repo, make your changes and submit a pull request.
29+
Or, even better: if you use Git, fork our repo, make your changes, and submit a pull request.
3130

32-
For small fixes, you can even just edit the files on github (github will then fork, change and submit a pull request
31+
For small fixes, you can even just edit the files on GitHub (GitHub will then fork, change, and submit a pull request
3332
automatically).
3433

3534
Development
@@ -41,12 +40,12 @@ Development
4140
virtualenv bepasty-server-env
4241
# Activate the virtualenv
4342
source bepasty-server-env/bin/activate
44-
# Clone the official bepasty-server (or your fork, if you want to send PULL requests)
43+
# Clone the official bepasty-server (or your fork, if you want to send pull requests)
4544
git clone https://github.com/bepasty/bepasty-server.git
4645
cd bepasty-server
4746
# This will use the current directory for the installed package.
48-
# Very useful during development! It will also autoreload when files are changed
47+
# Very useful during development! It will also auto-reload when files are changed.
4948
pip install -e .
50-
# Run the bepasty-server in debug mode. The server is reachable in http://127.0.0.1:5000
49+
# Run the Bepasty server in debug mode. The server is reachable at http://127.0.0.1:5000
5150
bepasty-server --debug
5251

docs/source/quickstart.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
Quickstart
22
==========
33

4-
Installing bepasty
4+
Installing Bepasty
55
------------------
66

7-
You can install bepasty either from PyPi (latest release) or from the git repository (latest available code).
7+
You can install Bepasty either from PyPI (latest release) or from the Git repository (latest available code).
88

99
::
1010

11-
# from PyPi:
11+
# from PyPI:
1212
pip install bepasty
1313

14-
# if you'ld like to have python-magic to help determining files' mime types, use:
14+
# if you'd like to have python-magic help determine files' MIME types, use:
1515
pip install bepasty[magic]
1616

17-
# from git repo
17+
# from Git repository
1818
pip install -e git+https://github.com/bepasty/bepasty-server.git#egg=bepasty-server
1919

20-
Configuring bepasty
20+
Configuring Bepasty
2121
-------------------
2222
Before you can use bepasty, you need to carefully configure it (it won't work in default configuration and most of
2323
the configuration settings need your attention).
@@ -34,7 +34,7 @@ Here is the documentation straight from its config:
3434
To create a local and non-default configuration, copy ``bepasty/config.py`` to e.g. ``/srv/bepasty/bepasty.conf``
3535
first, remove the ``class Config`` and remove all indents in the file.
3636
The comments can be removed too, if you feel the need to.
37-
At last modify these two configs variables: then modify it:
37+
Finally, modify these configuration variables:
3838

3939
::
4040

@@ -58,7 +58,7 @@ Important notes:
5858
http).
5959

6060

61-
Starting bepasty server
61+
Starting the Bepasty server
6262
-----------------------
6363

6464
You can run the bepasty server with your local configuration by pointing to it via the BEPASTY_CONFIG
@@ -73,9 +73,9 @@ Important note:
7373
* Use an absolute path as value for BEPASTY_CONFIG.
7474

7575

76-
The builtin WSGI server is recommended only for development and non-production use.
76+
The built-in WSGI server is recommended only for development and non-production use.
7777

78-
For production, you should use a WSGI server like gunicorn, apache+mod-wsgi, nginx+uwsgi, etc.
78+
For production, you should use a WSGI server like Gunicorn, Apache + mod_wsgi, Nginx + uWSGI, etc.
7979

8080
::
8181

@@ -85,7 +85,7 @@ For production, you should use a WSGI server like gunicorn, apache+mod-wsgi, ngi
8585
Invoking CLI commands
8686
---------------------
8787

88-
All bepasty commands expect either a --config <configfilename> argument or that the BEPASTY_CONFIG environment
88+
All Bepasty commands expect either a --config <configfilename> argument or that the BEPASTY_CONFIG environment
8989
variable points to your configuration file.
9090

9191
The "object" command operates on objects stored in the storage. You can get infos about them ("info" subcommand),

docs/source/rest.rst

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
========================
2-
Using bepasty's REST-API
2+
Using Bepasty’s REST API
33
========================
44

5-
The Rest-API enables you to upload and download files, as well as
6-
retrieve informations about the file on the server.
5+
The REST API enables you to upload and download files, as well as
6+
retrieve information about the file on the server.
77

88
Currently the REST API provides the following API Endpoints::
99

@@ -20,14 +20,14 @@ Currently the REST API provides the following API Endpoints::
2020

2121
Authentication
2222
==============
23-
For endpoints that require non-default permissions, authentication can be done through http basic authentication. The user is ignored and the password is the key for the intended permissions.
23+
For endpoints that require non-default permissions, authentication can be done through HTTP Basic authentication. The user is ignored and the password is the key for the intended permissions.
2424

2525
Errors
2626
======
27-
The error response from REST-API will set ``Content-Type:
28-
application/json``, and body as JSON format like the following
29-
example. (it was previously ``Content-Type: text/html; charset=utf-8``
30-
and partial HTML page or plain string)
27+
The error response from the REST API will set ``Content-Type:
28+
application/json``, and the body as JSON in the following
29+
format. (It was previously ``Content-Type: text/html; charset=utf-8``
30+
and a partial HTML page or a plain string.)
3131

3232
Example::
3333

@@ -56,20 +56,20 @@ GET Response by the server:
5656
MAX_BODY_SIZE: 1048576
5757
}
5858

59-
This interface will give you important infos for uploading and
60-
downloading files to your bepasty server. By now only the
61-
MAX_BODY_SIZE will be delivered to you, as no more info is
59+
This interface provides important information for uploading and
60+
downloading files to your Bepasty server. For now, only
61+
MAX_BODY_SIZE is provided, as no more information is
6262
available.
6363

6464
MAX_BODY_SIZE
65-
The maximum size of a post request's body. This is limited by
66-
the webserver and other middleware. See the documentation for
65+
The maximum size of a POST request body. This is limited by
66+
the web server and other middleware. See the documentation for
6767
more information. This also gives you the maximum size for the
6868
chunked upload.
6969

7070
MAX_ALLOWED_FILE_SIZE
71-
The maximum allowed filesize that can be stored on the
72-
server. Files uploads bigger than this limit will be aborted
71+
The maximum allowed file size that can be stored on the
72+
server. File uploads bigger than this limit will be aborted
7373
and the file on the server will be deleted.
7474

7575
Uploading a file
@@ -82,41 +82,41 @@ API Interface:
8282

8383
When uploading a file, chunked upload is mandatory. Check the
8484
MAX_BODY_SIZE for the maximum chunk size that can be sent to the
85-
server. The body of the post request contains the base64 encoded
85+
server. The body of the POST request contains the Base64-encoded
8686
binary of the file to be uploaded. (required permission:
8787
:ref:`create <permissions>`)
8888

8989
POST Request by the client:
9090

9191
Post Request Body
92-
Contains the base64 encoded binary of the file to be uploaded.
92+
Contains the Base64-encoded binary of the file to be uploaded.
9393

9494
The following headers *can (cursive)* or **must (bold)** be
95-
delivered by every post request to the server:
95+
delivered by every POST request to the server:
9696

9797
**Content-Range**
98-
The content-range header follows the specification by the w3c
98+
The Content-Range header follows the specification by the W3C
9999
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16).
100-
It has to be provided consistently and can resume a aborted
101-
file upload, together with the transaction-ID.
100+
It must be provided consistently and can resume an aborted
101+
file upload, together with the Transaction-ID.
102102

103103
**Transaction-ID**
104-
The transaction-ID will be provided by the server after the
105-
first upload chunk. After that first chunk, the transaction-id
106-
has to be provided by the client, to continue uploading the
104+
The Transaction-ID will be provided by the server after the
105+
first upload chunk. After that first chunk, the Transaction-ID
106+
has to be provided by the client to continue uploading the
107107
file.
108108

109109
*Content-Type*
110-
The content-type of the file uploaded to the server. If the
111-
content-type is not given, the server will guess the
112-
content-type by the filename. If this fails the content-type
113-
will be 'application/octet-stream'
110+
The content type of the file uploaded to the server. If the
111+
content type is not given, the server will guess the
112+
content type by the filename. If this fails, the content type
113+
will be 'application/octet-stream'.
114114

115115
*Content-Length*
116-
The content-length is mostly ignored by the server. It can be
116+
The Content-Length is mostly ignored by the server. It can be
117117
used to indicate the final file size. If your final file size
118118
is bigger than the maximum allowed size on the server, the
119-
upload will be aborted. The real filesize will be calculated
119+
upload will be aborted. The real file size will be calculated
120120
by the server while uploading.
121121

122122
*Content-Filename*
@@ -199,9 +199,9 @@ GET Response by the server:
199199
*Locked*
200200
Whether the file is locked or not.
201201
*Hash*
202-
The sha256 hash of the file uploaded. Calculated by the server.
202+
The SHA256 hash of the file uploaded. Calculated by the server.
203203
*Type*
204-
Mimetype of the file uploaded. If no filetype is provided
204+
MIME type of the file uploaded. If no file type is provided
205205
this will be set to 'application/octet-stream'.
206206

207207
Retrieving Item List
@@ -349,7 +349,7 @@ API Interface:
349349

350350
POST /apis/rest/items/<itemname>/unlock
351351

352-
Lock a file specified by ``<itemname>``. (required permission:
352+
Unlock a file specified by ``<itemname>``. (required permission:
353353
:ref:`admin <permissions>`)
354354

355355
POST Request by the client:

0 commit comments

Comments
 (0)