
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
A library for checking the latest revisions of standard methods published by standard bodies.
Stdchecker is a Python library for checking the latest revisions of standard methods published by standard bodies. Supported standard bodies are:
Use the package manager pip to install stdchecker:
pip install stdchecker
or directly from the source code:
git clone https://github.com/emreture/stdchecker.git
cd stdchecker
python setup.py install
Fetching standard methods data:
import stdchecker
std_list = ['D92', 'D93']
for i in stdchecker.fetch_astm(std_list):
print(i)
Output:
{'query': 'D92',
'error': None,
'no': 'ASTM D92',
'rev': '18',
'desc': 'Standard Test Method for Flash and Fire Points by Cleveland Open Cup Tester',
'body': 'astm',
'url': 'https://www.astm.org/Standards/D92.htm'}
{'query': 'D93',
'error': None,
'no': 'ASTM D93',
'rev': '20',
'desc': 'Standard Test Methods for Flash Point by Pensky-Martens Closed Cup Tester',
'body': 'astm',
'url': 'https://www.astm.org/Standards/D93.htm'}
Checking if existing standard methods are up-to-date:
import stdchecker
std_list = ['D92', 'D93']
actual_std_list = [
{'no': 'ASTM D92', 'rev': '18'},
{'no': 'ASTM D93', 'rev': '18'}
]
fetch_generator = stdchecker.fetch_astm(std_list)
for i in stdchecker.check_astm(fetch_generator, actual_std_list):
print(i)
Output:
{'query': 'D92',
'error': None,
'no': 'ASTM D92',
'rev': '18',
'desc': 'Standard Test Method for Flash and Fire Points by Cleveland Open Cup Tester',
'body': 'astm',
'url': 'https://www.astm.org/Standards/D92.htm',
'check': True,
'actual': '18'}
{'query': 'D93',
'error': None,
'no': 'ASTM D93',
'rev': '20',
'desc': 'Standard Test Methods for Flash Point by Pensky-Martens Closed Cup Tester',
'body': 'astm',
'url': 'https://www.astm.org/Standards/D93.htm',
'check': False,
'actual': '18'}
If an id
is provided (for example existing standard methods are stored in a database), the output will also include the id
key and its value:
import stdchecker
std_list = ['D92', 'D93']
actual_std_list = [
{'id': 1, 'no': 'ASTM D92', 'rev': '18'},
{'id': 2, 'no': 'ASTM D93', 'rev': '18'}
]
fetch_generator = stdchecker.fetch_astm(std_list)
for i in stdchecker.check_astm(fetch_generator, actual_std_list, id_from_actual=True):
print(i)
Output:
{'query': 'D92',
'error': None,
'no': 'ASTM D92',
'rev': '18',
'desc': 'Standard Test Method for Flash and Fire Points by Cleveland Open Cup Tester',
'body': 'astm',
'url': 'https://www.astm.org/Standards/D92.htm',
'check': True,
'actual': '18',
'id': 1}
{'query': 'D93',
'error': None,
'no': 'ASTM D93',
'rev': '20',
'desc': 'Standard Test Methods for Flash Point by Pensky-Martens Closed Cup Tester',
'body': 'astm',
'url': 'https://www.astm.org/Standards/D93.htm',
'check': False,
'actual': '18',
'id': 2}
For more documentation, refer to the docstrings in the source files.
See the LICENSE file for license rights and limitations (MIT).
FAQs
A library for checking the latest revisions of standard methods published by standard bodies.
We found that stdchecker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.