Network transfer/hosting utilities by SblipDev.
Project description
PyServed v2.1
A beautiful cli with network transfer/hosting utilities to make life easier.
Installation
Using pip (recommended) ->
$ pip install pyserved
Pypi Link -> https://pypi.org/project/pyserved/
Using Git and SETUP.py install (for latest updates) ->
$ git clone https://github.com/SblipDev/pyserved.git
$ cd pyserved
$ python3 setup.py install
Usage
Once installed, you will be able to send files across computers with the package and python on it OR you can host a folder on network so anyone on network may download its contents. If there is any problem you can file and issue on this repo.
To listen for files
To send files, you will have to run the following command (The correct output is also shown):
$ pdlisten
[SERVER]: Server is listening on 192.168.1.5:8080
[SERVER]: Connection Key: 192@168@1@58+8080
[SERVER]: Waiting for a connection for files...
To change the default port(8080), add the '-port XXXX' argument to the command and try again. If someone else conects using the pyserved 'pdsnd' command, enter the connection key which is showed. It will write the file to the current working directory
To get files.
To send files, you will have to run the pdsnd
command. It will prompt for the filepath of the file you want to send.
If everything goes right, the file will be sent to the person listening in the same network.
To change the default port(8080), add the '-port XXXX' argument to the command and try again.
$ pdsnd
[SERVER] : Program Initialized at current directory './'
[SERVER] : Connection Key: {Connection Key from pdlisten program}
[SERVER] : Filename: {Path of file which you want to transfer.}
To host folder.
To host a folder, you have to use the pdhost
command. You can use the -port
command so you may change the default port 6789
.
PS. Don't use in production environments! It only has basic security features!
$ pdhost -port 7070
[SERVER]: started at 192.168.1.58:7070
192.168.1.58 - - [22/Mar/2022 20:15:54] "GET / HTTP/1.1" 200 -
192.168.1.58 - - [22/Mar/2022 20:15:55] code 404, message File not found
192.168.1.58 - - [22/Mar/2022 20:15:55] "GET /favicon.ico HTTP/1.1" 404 -
Thats it.
Have a nice day
LICENSE
MIT License
Copyright (c) 2022 SblipDev.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
This project was constructed with Choam by cowboycodr
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyserved-2.1.tar.gz
.
File metadata
- Download URL: pyserved-2.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a38855f43595786802a8ea59974079b8dd384fd312312390f205717c173b03dd |
|
MD5 | d1cfcd2a6686609af91d567803d9fddc |
|
BLAKE2b-256 | ba13f09b2915dbdafe9b9ae355f4aaea85fe521b4c15de0c34eccc77c5399837 |
File details
Details for the file pyserved-2.1-py3-none-any.whl
.
File metadata
- Download URL: pyserved-2.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0389a5d2958182f86f8db2bf94b03e501a8237d80ef02acbe4825a8ffa6731f6 |
|
MD5 | 758271d3fb058e27a09089bae32a8190 |
|
BLAKE2b-256 | e980f56326c864f6db6fd612e10c46099b962752acf34ca0fa91f3a1154fdc7e |