ds-practicals
A zero-dependency Python package to retrieve Data Science practical assignment codes, titles, and problem statements by number (10 assignments).
Installation
pip install ds-practicals-pvg
Usage
You can use either the Class API or the Module API.
1. Class API (Recommended)
The DSPracticals class wraps all functions and adds the ability to export complete .ipynb files.
from ds_practicals import DSPracticals
ds = DSPracticals()
# List all 10 assignments
for n, title in ds.list_assignments():
print(n, title)
# Get the full problem statement for assignment 3
print(ds.get_statement(3))
# Get code for assignment 2
print(ds.get_code(2))
# Export an assignment as a standalone Jupyter Notebook file
ds.export_to_notebook(1)
# → creates 'practical_1.ipynb' in your current directory
2. Module API
from ds_practicals import get_code, get_title, get_statement, get_assignment, list_assignments
# Get title for assignment 1
print(get_title(1))
# → "Data Wrangling I"
# Get title, statement, and code as a dict
a = get_assignment(1)
print(a["title"])
Assignments
| # | Title |
|---|---|
| 1 | Data Wrangling I |
| 2 | Data Wrangling II |
| 3 | Descriptive Statistics - Measures of Central Tendency and Variability |
| 4 | Data Analytics I - Linear Regression |
| 5 | Data Analytics II - Logistic Regression |
| 6 | Data Analytics III - Naive Bayes |
| 7 | Text Analytics |
| 8 | Data Visualization I |
| 9 | Data Visualization II |
| 10 | Data Visualization III |
API Reference
| Function | Returns | Description |
|---|---|---|
list_assignments() |
list[tuple[int, str]] |
All (number, title) pairs |
get_title(n) |
str |
Title of practical n |
get_statement(n) |
str |
Full problem statement for practical n |
get_code(n) |
str |
All code cells from practical n concatenated |
get_assignment(n) |
dict |
{"title", "statement", "code"} for practical n |
License
MIT
Metadata
Release files for ds-practicals-pvg 1.0.1
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 | Actions |
|---|---|---|---|---|
| ds_practicals_pvg-1.0.1.tar.gz | 16.0 kB | Without provenance | Details for ds_practicals_pvg-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ds_practicals_pvg-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for ds_practicals_pvg-1.0.1-py3-none-any.whl |
Total release size: 37.7 kB
Release files / ds_practicals_pvg-1.0.1.tar.gz
| Download URL | ds_practicals_pvg-1.0.1.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16178f0c5a83f59f0c3e6bc7cac2c4119837e9dcc4159e6b83791a15a0634e7f
|
|
BLAKE2b-256 checksum How to use checksums |
a570b51c624cf1f204472f752473ceebe924c87da99e125dc7686b78e4f2d753
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / ds_practicals_pvg-1.0.1-py3-none-any.whl
| Download URL | ds_practicals_pvg-1.0.1-py3-none-any.whl |
|---|---|
| Size | 21.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5067535a3c9a95c39e45684b52c4a140bbcf032757c25b8230cff23639961cea
|
|
BLAKE2b-256 checksum How to use checksums |
17c6efdbe0917ba6846e799084e064307e8da199fd0199074087fe4f34981853
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for ds-practicals-pvg 1.0.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.