Various counting tools
Project description
Bravo! You have received a Medical Diploma in Ships from
the Orbital Convergence University International Air and Water Embassy of the Tangerine Planet.
You are now officially certified to include "ships" in your practice.
ships
description
This is a kit of python3 modules.
install
[ZSH] pip install ships
check equality
[xonsh] ships check-equality --dir-1 {dir 1} --dir-2 {dir 2}
find and replace a string
Make sure the git repository doesn't have any changes before
running this, in the event that there is a problem.
Itinerary: add "exclude_paths".
Caution: Make sure there aren't any image or video files in the path.
import ships.paths.directory.find_and_replace_string_v2 as find_and_replace_string_v2
import pathlib
from os.path import dirname, join, normpath
this_folder = pathlib.Path (__file__).parent.resolve ()
find_and_replace_string_v2.start (
the_path = str (this_folder) + "/DB",
find = 'region 1',
replace_with = 'region one',
replace_contents = "yes",
replace_paths = "yes"
)
simultaneous_v2
from ships.flow.simultaneous_v2 import simultaneously_v2
import time
def move (item):
print ("starting", item)
time.sleep (item)
result = f"Processed item: {item}"
print (result)
return result
proceeds = simultaneously_v2 (
items = [3.5, 1, 2, 1.1, 4, 1.11, 1.12, 1.13],
capacity = 4,
move = move
)
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
ships-1.9.0.tar.gz
(377.1 kB
view details)
Built Distribution
ships-1.9.0-py3-none-any.whl
(272.8 kB
view details)
File details
Details for the file ships-1.9.0.tar.gz
.
File metadata
- Download URL: ships-1.9.0.tar.gz
- Upload date:
- Size: 377.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-40-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b58067f6b089ef59c2bbedd274083d6941ca8007c347cec00a8b3f5d9aeaae32 |
|
MD5 | 5b31ba2c5322badebf0b2373f534ce46 |
|
BLAKE2b-256 | 4705d4a982d5a45c4988bdb0ef8767a06b5f3e76cbd9cd23cb6073d919e9fd3b |
File details
Details for the file ships-1.9.0-py3-none-any.whl
.
File metadata
- Download URL: ships-1.9.0-py3-none-any.whl
- Upload date:
- Size: 272.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-40-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04b3766335c426491ac75e3e894241b26e18ea2256b6ae4f288d1a077e7f5c3d |
|
MD5 | 7b59ac718bb42f0841018221942e3f54 |
|
BLAKE2b-256 | 8fd685ad01fd800975bf6fd42d647b1ec703f89dcddfb4c90c9166d61a4babe5 |