Skip to main content

My first Python package

Project description

Book Class Package

This is a simple Python package that defines a Book class with basic functionality to store and retrieve information about books.

Features

  • Store Book Information: Store a book's title, author, and publication year.
  • Show Author: Retrieve the author of the book.
  • Show Publication Year: Retrieve the publication year of the book.
  • Get Complete Book Info: Retrieve a full description of the book, including title, author, and publication year.

Installation

You can install this package from PyPI using pip:

pip install book_package_svk

Usage

from book_package_svk import Book

# Create a book instance
book = Book("1984", "George Orwell", 1949)

# Show the author's name
print(book.show_author(book.author))  # Output: Author: George Orwell

# Show the publication year
print(book.show_publication_year(book.publication_year))  # Output: Publication Year: 1949

# Get complete information about the book

print(book.get_info())  
# Output: Title: 1984, Author: George Orwell, Publication Year: 1949

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

book_package_svk-0.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

book_package_svk-0.0.2-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file book_package_svk-0.0.2.tar.gz.

File metadata

  • Download URL: book_package_svk-0.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for book_package_svk-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cb57e79549f864482cbf85af1de63eef63f4a9365228705022df99a6e2580783
MD5 ca2ec9b19ca90d8309df081c73e77cdd
BLAKE2b-256 661bff8c5bf1aeb83e37b3f9a872d8ff97a6a4892e71ce5f67bebd77ca42dd5d

See more details on using hashes here.

File details

Details for the file book_package_svk-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for book_package_svk-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c11052faae95db93bcabadd239f440cb1064ac17dfe63ffdd17c28bea7e1c85d
MD5 395c9f5373f5e20339194c47d852772f
BLAKE2b-256 20e104cef5b17f5087ec4e9a75645decb3a5949922ab889142383d6df55a09ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page