Accessible graphs package
This package enables you to experience graphs in an accessible manner if you're a blind person who uses a screen reader with or without a braille display.
How it works?
To get the accessible graph, you need to:
-
Import the package as follows:
import accessible_graphs_pkg
-
Call the function "getAccessibleGraph" as follows:
accessible_graphs_pkg.getAccessibleGraph(rawData, description, minValue, maxValue)
The "getAccessibleGraph function accepts 4 arguments:
- raw Data - which could be:
- A list of numerical values representing the graph
- A dict, where the keys are the labels for the data, and the values are the numbers corresponding to each label
- description - an optional string describing the graph
- minValue - an optional argument which tells the system that this is the minimum value. If not specified, the system calculates this value automatically based on the data range
- minValue - an optional argument which tells the system that this is the minimum value. If not specified, the system calculates this value automatically based on the data range
- maxValue - an optional argument which tells the system that this is the maximum value. If not specified, the system calculates this value automatically based on the data range
Example 1
Suppose we want to make the following graph accessible, represented by the following values:
1500, 1300, 1700, 2000, 1000, 1450, 1900
Suppose also we want to give the description "Demo stock example" to our graph.
Then we call our function as follows:
accessible_graphs_pkg.getAccessibleGraph([1500, 1300, 1700, 2000, 1000, 1450, 1900], 'Demo stock example')
We then are supposed to get a graph similar to the one in this link
Note that the minimum and maximum values are calculated automatically in this example.
Example 2
Let's now talk about more realistic example. Suppose we want to get the graph describing the following stock to be accessible, when represented by a list of key-value pairs, where the key is the day in the week, and the value is the value of the stock:
Sunday: 1500
Monday: 1300
Tuesday: 1700
Wednesday: 2000
Thursday: 1000
Friday: 1450
Saturday: 1900
Suppose also we want to give the description "Demo stock example" to our graph as before.
Then we call our function as follows:
accessible_graphs_pkg.getAccessibleGraph({'Sunday': 1500, 'Monday': 1300, 'Tuesday': 1700, 'Wednesday': 2000, 'Thursday': 1000, 'Friday': 1450, 'Saturday': 1900}, 'Demo stock example')
Then we are supposed to get a graph similar to the one in this link
Note that the minimum and maximum values are calculated automatically in this example.
Example 3
Suppose we want to make the graph represented by the following data to be accessible:
1, 2, 3, 4, 5
Suppose also we want to tell the system that the minimum value should be 2, and the maximum should be 4. Then we call our function as follows:
accessible_graphs_pkg.getAccessibleGraph([1, 2, 3, 4, 5], description = 'some description', minValue= 2, maxValue = 4)
Some useful links
Metadata
Release files for accessible-graphs 0.0.4
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 | |
|---|---|---|---|---|
| accessible_graphs-0.0.4.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| accessible_graphs-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 kB
Release files / accessible_graphs-0.0.4.tar.gz
| Download URL | accessible_graphs-0.0.4.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40ad119dd0c4cf63ead17d4c8b49a8d7ecf5bc8c4cdfabe40ef466d2cb78fb22
|
|
BLAKE2b-256 checksum How to use checksums |
cc6a43d319f889701126d6cd6266c8b612eb9a584036c8b2b8ff4b15a98c7ee9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5
|
Release files / accessible_graphs-0.0.4-py3-none-any.whl
| Download URL | accessible_graphs-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0696249d0e21bb14170c8c27a162553be83ffaf35168b440a872856cf833237b
|
|
BLAKE2b-256 checksum How to use checksums |
6d679a3f601293b90282c21cec821fe27bcfc38b506ced770104a3e56b86bc96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5
|
Security for accessible-graphs 0.0.4
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.