
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
The yearfrac
git repo is available as PyPi package
pip install yearfrac
Check the examples folder for notebooks.
Functions
isaleapyear
-- Check if a year is leap yeareastersunday
-- Determine day and month of an Easter Sunday for a given yearjd_to_date
and date_to_jd
-- Julian Day number conversionact_afb
-- Actual/Actual AFBact_isda
-- Actual/Actual ISDAd30360e
-- 30E/360 ISDA daycount methodd30365
-- 30/365 daycount methodyearfrac
-- Wrapper for all daycount methodspython3.7 -m venv .venv
source .venv/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt
pip3 install -r requirements-demo.txt
(If your git repo is stored in a folder with whitespaces, then don't use the subfolder .venv
. Use an absolute path without whitespaces.)
flake8 --ignore=F401 --exclude=$(grep -v '^#' .gitignore | xargs | sed -e 's/ /,/g')
python -W ignore -m unittest discover
.pyc
files: find . -type f -name "*.pyc" | xargs rm
__pycache__
folders: find . -type d -name "__pycache__" | xargs rm -rf
Publish
# pandoc README.md --from markdown --to rst -s -o README.rst # RST file is too much trouble
python setup.py sdist
twine upload -r pypi dist/*
Please open an issue for support.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
FAQs
Daycount methods to compute date differences in year units
We found that yearfrac 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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.