Skip to main content

PyServed v2.1

Downloads LOC

A beautiful cli with network transfer/hosting utilities to make life easier.

Installation

Pip Installation

$ pip install pyserved

Pypi Link -> https://pypi.org/project/pyserved/

Using Git and SETUP.py install (for latest updates) ->

Source Installation

$ 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

Metadata

Release files for pyserved 2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyserved 2.1
File Size Uploaded
pyserved-2.1.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyserved 2.1
File Interpreter ABI Platform
pyserved-2.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.2 kB

Release files / pyserved-2.1.tar.gz

Download URL pyserved-2.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a38855f43595786802a8ea59974079b8dd384fd312312390f205717c173b03dd
BLAKE2b-256 checksum
How to use checksums
ba13f09b2915dbdafe9b9ae355f4aaea85fe521b4c15de0c34eccc77c5399837
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7

Release files / pyserved-2.1-py3-none-any.whl

Download URL pyserved-2.1-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0389a5d2958182f86f8db2bf94b03e501a8237d80ef02acbe4825a8ffa6731f6
BLAKE2b-256 checksum
How to use checksums
e980f56326c864f6db6fd612e10c46099b962752acf34ca0fa91f3a1154fdc7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7

Release history Release notifications | RSS feed

This release

2.1 This release

2 release files

2.0.9

2 release files

2.0.8

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

1 release file

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

0.9

2 release files

0.8

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page