Compare commits
7 Commits
864b2161b1
...
f2594c2adf
Author | SHA1 | Date |
---|---|---|
Sebastian Lohff | f2594c2adf | 4 years ago |
Sebastian Lohff | 95852ba11d | 4 years ago |
Sebastian Lohff | 14771695c4 | 4 years ago |
Sebastian Lohff | 5c78991bc8 | 4 years ago |
Sebastian Lohff | ef41f65996 | 4 years ago |
Sebastian Lohff | 19c1b000a4 | 4 years ago |
Sebastian Lohff | 3d46950d6c | 4 years ago |
@ -0,0 +1,33 @@
|
|||||||
|
Servefile
|
||||||
|
=========
|
||||||
|
|
||||||
|
Serve files from shell via a small HTTP server. The server redirects all HTTP
|
||||||
|
requests to the file, so only IP and port must be given to another user to
|
||||||
|
access the file. Its main purpose is to quickly send a file to users in your
|
||||||
|
local network, independent of their current setup (OS/software). Besides that
|
||||||
|
it also supports uploads, SSL, HTTP basic auth and directory listings.
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* serve single file
|
||||||
|
* serve a directory with directory index
|
||||||
|
* file upload via webinterface
|
||||||
|
* HTTPS with on the fly generated self signed SSL certificates
|
||||||
|
* HTTP basic authentication
|
||||||
|
* serving files/directories as on request generated tar files
|
||||||
|
|
||||||
|
Install
|
||||||
|
-------
|
||||||
|
|
||||||
|
Via pip
|
||||||
|
```shell
|
||||||
|
pip install servefile
|
||||||
|
```
|
||||||
|
After installation either execute `servefile --help` or `python -m servefile --help`
|
||||||
|
|
||||||
|
Standalone:
|
||||||
|
If you don't have pip available just copy `servefile/servefile.py` onto the target machine, make it executable and you are ready to go.
|
||||||
|
```shell
|
||||||
|
$ wget https://raw.githubusercontent.com/sebageek/servefile/master/servefile/servefile.py -O servefile
|
||||||
|
$ chmod +x servefile
|
||||||
|
$ ./servefile --help
|
||||||
|
```
|
@ -0,0 +1,3 @@
|
|||||||
|
from . import servefile
|
||||||
|
|
||||||
|
servefile.main()
|
@ -1,42 +1,52 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
with open("README.md") as f:
|
||||||
|
long_description = f.read()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='servefile',
|
name='servefile',
|
||||||
description='Serve files from shell via a small HTTP server',
|
description='Serve files from shell via a small HTTP server',
|
||||||
long_description='Serve files from shell via a small HTTP server. The server redirects all HTTP requests to the file, so only IP and port must be given to another user to access the file. Its main purpose is to quickly send a file to users in your local network, independent of their current setup (OS/software). Beneath that it also supports uploads, SSL, HTTP basic auth and directory listings.',
|
long_description=long_description,
|
||||||
platforms='posix',
|
long_description_content_type='text/markdown',
|
||||||
version='0.4.4',
|
platforms='posix',
|
||||||
license='GPLv3 or later',
|
version='0.5.0',
|
||||||
url='https://seba-geek.de/stuff/servefile/',
|
license='GPLv3 or later',
|
||||||
author='Sebastian Lohff',
|
url='https://github.com/sebageek/servefile/',
|
||||||
author_email='seba@someserver.de',
|
author='Sebastian Lohff',
|
||||||
install_requires=['pyopenssl'],
|
author_email='seba@someserver.de',
|
||||||
tests_require=[
|
install_requires=['pyopenssl'],
|
||||||
'pathlib2; python_version<"3"',
|
tests_require=[
|
||||||
'pytest',
|
'pathlib2; python_version<"3"',
|
||||||
'requests',
|
'pytest',
|
||||||
],
|
'requests',
|
||||||
scripts=['servefile'],
|
],
|
||||||
classifiers=[
|
packages=["servefile"],
|
||||||
'Development Status :: 5 - Production/Stable',
|
entry_points={
|
||||||
'Environment :: Console',
|
"console_scripts": [
|
||||||
'Intended Audience :: End Users/Desktop',
|
"servefile = servefile.servefile:main",
|
||||||
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
|
],
|
||||||
'Natural Language :: English',
|
},
|
||||||
'Programming Language :: Python',
|
classifiers=[
|
||||||
'Programming Language :: Python :: 2',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'Programming Language :: Python :: 2.7',
|
'Environment :: Console',
|
||||||
'Programming Language :: Python :: 3',
|
'Intended Audience :: End Users/Desktop',
|
||||||
'Programming Language :: Python :: 3.6',
|
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
|
||||||
'Programming Language :: Python :: 3.7',
|
'Natural Language :: English',
|
||||||
'Programming Language :: Python :: 3.8',
|
'Programming Language :: Python',
|
||||||
'Topic :: Communications',
|
'Programming Language :: Python :: 2',
|
||||||
'Topic :: Communications :: File Sharing',
|
'Programming Language :: Python :: 2.7',
|
||||||
'Topic :: Internet',
|
'Programming Language :: Python :: 3',
|
||||||
'Topic :: Internet :: WWW/HTTP',
|
'Programming Language :: Python :: 3.5',
|
||||||
'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
|
'Programming Language :: Python :: 3.6',
|
||||||
'Topic :: Utilities',
|
'Programming Language :: Python :: 3.7',
|
||||||
],
|
'Programming Language :: Python :: 3.8',
|
||||||
|
'Topic :: Communications',
|
||||||
|
'Topic :: Communications :: File Sharing',
|
||||||
|
'Topic :: Internet',
|
||||||
|
'Topic :: Internet :: WWW/HTTP',
|
||||||
|
'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
|
||||||
|
'Topic :: Utilities',
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in new issue