![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
A Python package for parsing human-friendly number formats into floats. Handles various number formats including comma separators, percentages, and magnitude suffixes (k, M, B).
pip install numpar
from numpar import parse_number
# Basic numbers
parse_number('123.45') # 123.45
parse_number('-123.45') # -123.45
# Comma separators
parse_number('1,234.56') # 1234.56
parse_number('1,234,567') # 1234567.0
# Percentages
parse_number('50%') # 0.5
parse_number('12.34%') # 0.1234
# Magnitude suffixes
parse_number('1.5k') # 1500.0
parse_number('2.5M') # 2500000.0
parse_number('1.5B') # 1500000000.0
# Combined formats
parse_number('1,234.56k') # 1234560.0
Contributions are welcome! Here's how you can help improve numpar:
git checkout -b feature/amazing-feature
)# Install development dependencies
pip install -e .
# Run tests
python -m unittest discover tests
git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)Clone the repository:
git clone https://github.com/yourusername/numpar.git
cd numpar
Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
Install in development mode:
pip install -e .
To publish a new version to PyPI:
Update version in setup.py
Build the distribution:
python -m pip install --upgrade build
python -m build
Upload to PyPI:
python -m pip install --upgrade twine
python -m twine upload dist/*
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A package for parsing number strings in various formats
We found that numpar 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.