seds-rocket-yourusername
A small teaching package (SEDS Lab 3, ESI Sidi Bel Abbès) that simulates rockets, shuttles and circle-shaped rockets in a 2-D plane.
Installation
pip install seds-rocket-yourusername
Usage
from rocket import Rocket, Shuttle, CircleRocket
a = Rocket(0, 0)
b = Shuttle(3, 4, flights_completed=2)
print(a.get_distance(b)) # 5.0
print(a == Rocket(0, 0)) # True
c = CircleRocket(x=1, y=1, r=2)
print(c.get_area()) # 12.566...
print(c.get_circumference()) # 12.566...
Classes
Rocket(x, y): a rocket with a position. Methods:move_rocket(),get_distance(other), equality with==.Shuttle(x, y, flights_completed): a reusableRocket.CircleRocket(x, y, r): aRocketshaped like a circle of radiusr, withget_area()andget_circumference().
Author
Mohammedseghir Alaeddine
License
MIT
Metadata
Release files for seds-rocket-alaeddine 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| seds_rocket_alaeddine-0.1.0.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seds_rocket_alaeddine-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / seds_rocket_alaeddine-0.1.0.tar.gz
| Download URL | seds_rocket_alaeddine-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7aac3dc1ea7265eea0ee530d2742da45f9e79b3d76e44625fa9daf11bbc8c87f
|
|
BLAKE2b-256 checksum How to use checksums |
71bf85902db9ae4f97690616018b337aa53825179b4dfbe10a2ce74e647aadd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.5
|
Release files / seds_rocket_alaeddine-0.1.0-py3-none-any.whl
| Download URL | seds_rocket_alaeddine-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
160d3ac0499e9e3c2b82fdbfa4ca1891bf764e34e095b7953554aeca94bb9df1
|
|
BLAKE2b-256 checksum How to use checksums |
4f88dc180ea4dba7b3e9cee66d074af20a4dac6ebf86e04e0d89cf66ea7abaf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.5
|
Security for seds-rocket-alaeddine 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.