Skip to main content

Archy

This is a python package is created to facilitate calculations in the field of aerospace Mathematics Engineering in particular and mathematics geometry in general As it can calculate the area of shapes and their perimeter with several types of input

Archiy

shapes:

  • Point : accept arguments : a , b represented the point coordinates in the orthogonal and homogeneous parameters

This class contain __init__, __repr__ and 'distance' methods, where the distance method take a point object as parameter to calculate the distance between the points.

Example :

p1 = Point(1, 30)
p2 = Point(4, 80)

p1.distance(p2)
  • Square : Square class have 2 types of declaration :

    • init * args: height: height of the rectangle width: width

    • init ** kwargs: points: a, b, c, d

This class contain __init__ and __repr__ and other methods :

  • perimetre() : this method calculate Square perimetre.
  • surface() : this method calculate Square surface.
  • diagonal() : this method calculate Square diagonal.

Example :

from archy import  Point, Square


p1 = Point(1, 30)
p2 = Point(4, 80)
p3 = Point(6, 20)
p4 = Point(8, 10)


### Square ###
S1 = Square(4)
S2 = Square(a=p1, b=p2, c=p3, d=p4)
print(f"Square Side > {S1} \n")
print(f"Square side Diagonal > {S1.diagonal()}\n")
print(f"Square side surface > {S1.surface()}\n")
print(f"Square side perimetre > {S1.perimetre()}\n")
  • Triangle : Triangle class have 2 types of declaration :

    • init * args: accept 3 params type(int) representing side1, side2, side3

      example:

        T = Triangle(5, 2, 3)
      

    • init ** kwargs: accept 3 params (a,b,c) type(Point) representing side1, side2, side3

      example:

      from archiy import Point, Triangle
      p1 = Point(1, 30)
      p2 = Point(4, 80)
      p3 = Point(6, 20)
      
      T = Triangle(a=p1, b=p2, c=p3)
      

This class contain __init__ , __repr__ and 'perimetre'.

The perimetre method allow to calculate the triangle perimeter :

    from archiy import Triangle
    T = Triangle(1,2,10)
    T1.perimetre() 
  • Rectangle : Rectangle class have 2 types of declaration :
    • init * args: accept 2 params : (height,width)

      example:

      from archiy import
      R = Rectangle(5,2)
      
    • init ** kwargs: accept 4 params (a,b,c,d) type(Point)

      example:

      from archiy import Point, Rectangle
      p1 = Point(1, 30)
      p2 = Point(4, 80)
      p3 = Point(6, 20)
      p4 = Point(8, 10)
      
      ### Rectangle ###
      R = Rectangle(5, 5)
      print(f"Rectangle > {R}")
      print(f"Rectangle Surface > {R.surface()} \n")
      

Metadata

Release files for Archiy 1.0.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 Archiy 1.0.1
File Size Uploaded
Archiy-1.0.1.tar.gz 3.8 kB Details

Release files / Archiy-1.0.1.tar.gz

Download URL Archiy-1.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b845a4788c564d1eed9e00a8deef92c7bf4ed1c2fbdac6d257406ad67bdf58c1
BLAKE2b-256 checksum
How to use checksums
25bd68bc58597186c02f536841488f282d9ab24ea96d8131c11d7104530c3f88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

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