Skip to main content
Changelog

1.6.1
- wildcard import was unable to access new classes.

1.6.0
- Added new HyperPlane class, defined by multiple points.
- Added new HyperPlaneSegment class.
- Added line.hyperplane_intersection function, that returns the intersection of two HyperPlanes
- Added vector.orthogonalise_vector_set function that returns an orthonormal vector set when given a list of vecotrs.
- Added vector.independent_of function, which returns True if a given vector is independent of a given list of vectors.
- Changed colour.dim and colour.bright doc strings.
- Added pygame_.init, which must be called before any pygame_ functions can be used.
- Added new pad method to vectors and points.
- Altered wildcard imports to prevent exposising modules.

1.5.3
- Made Point._coords public

1.5.2
- Fixed import * shadowing numpy and other internal imports.

1.5.1
- Fixed circular import causing crash.

1.5.0
- Added a new Point class, as well as Point2d and Point3d subclasses.
- Added a new Vector class, with Vector2d and Vector3d subclasses.
- Points and Vectors support operations between them such as addition, subtraction, multiplication and division.
- Points and Vectors can exist in an arbitrary amount of dimensions, and all functions have been modified to require data passed in as a Point or Vector explicitly. Lines are simply a tuple containing two Points.
- Added a new Colour class, that can be defined using a string hex code, or a RGB(A) tuple.
- Conversion between hex and RGB tuples is built in, and so are operations such as addition, subtraction, multiplication and division.
- Addition blends two colours together. The quantity attribute can be used to control weighting.
- Subtraction is defined as the inverse of addition, while multiplication and division are the conventional implementations
- Functions have now been separated into different modules, those being: colour, images, line, point, pygame, types and vector.
- All functions and classes can still be accessed via C_librarianthefirstsecondandlast.<function>.

- Added the following:
- convert_tuple_to_list, which accepts a tuple and recursively converts it into a list.
- truncate_file_at_byte_sequence, which accepts a file and a byte sequence, and truncates the file at the last occurrence of the byte sequence.
- colour.to_hex which converts an RGB tuple into a string hex code.
- colour.to_rgb, which converts a string hex code into a tuple of RGB values.
- colour.bright, which brightens a colour by a given percentage
- colour.dim, which dims a colour by a given percentage.
- colour.random_colour, which returns a random colour
- images.replace_colour, which replaces all pixels of a given colour inside a PIL ImageFile with a different colour.
- vector.cross_product, which calculates the cross product of the given vectors.
- degs and rads as types showing whether the function accepts or outputs radians or degrees.

- Altered the following:
- Vector and Point are no longer types, and are now classes.
- line.point_on_segment and line.line_intersect can now accept vectors existing in an arbitrary amount of dimensions, and are now more efficient.
- point.distance, point.angle_from and point.rotate_about can now accept points existing in an arbitrary amount of dimensions.
- vector.vector_from now uses subtraction of Points.
- vector.vector_from_angle and vector.angle_from_vector now accept/output a list of hypersherical angles when creating/accepting a vector existing in more than two dimensions.
- All vector functions now accept vectors existing in an arbitrary amount of dimensions.


1.4.0
-Added or altered type annotations within many functions
-Made warn() use a set to prevent duplicate warnings.
-Altered rotate_about to accept degrees.
-Rotation functions now consistently accept degrees and return radians.

1.3.1
-(Hopefully) fixed warn slowing down the game.

1.2.2
-Fixed issue with smooth_blur

1.2.1
-Made smooth_blur smoother

1.2.0
-Added two new functions. smooth_blur and blocky_blur

1.1.2
-(Attempted to) Fixed issue with negative sliders

1.1.1
-Fixed minor issue

1.1.0

-Added truncation of decimals.
-Added text wrapping of text through popup_text
-Added cull_whitespace. A function that removes whitespace within an image, returning only the smallest bounding box required.
-Added the ability to rotate a point about a separate point.

Metadata

Release files for C-librarianthefirstsecondandlast 1.6.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 C-librarianthefirstsecondandlast 1.6.1
File Size Uploaded Provenance Actions
c_librarianthefirstsecondandlast-1.6.1.tar.gz 15.5 kB Without provenance Details for c_librarianthefirstsecondandlast-1.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for C-librarianthefirstsecondandlast 1.6.1
File Interpreter ABI Platform Actions
c_librarianthefirstsecondandlast-1.6.1-py3-none-any.whl Python 3 none any Details for c_librarianthefirstsecondandlast-1.6.1-py3-none-any.whl

Total release size: 34.0 kB

Release files / c_librarianthefirstsecondandlast-1.6.1.tar.gz

Download URL c_librarianthefirstsecondandlast-1.6.1.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9dca38fcb38aacd7e36a9a3f86ca4caeaeac95065bebaab8c306c7640705ce8d
BLAKE2b-256 checksum
How to use checksums
b9d071a73f1db7a402f1adaeedd173acbb14378be53be0bba10d1b548ee06570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / c_librarianthefirstsecondandlast-1.6.1-py3-none-any.whl

Download URL c_librarianthefirstsecondandlast-1.6.1-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b973d9f3409b65fe289c93b9ab6ed47df0c290589f744373c6c43924d5388a3f
BLAKE2b-256 checksum
How to use checksums
985ffdb5151cd3f8a2960580ec2cf0c6643616fd641746acc26d9b1157a708f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for C-librarianthefirstsecondandlast 1.6.1

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.

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