![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
dead_code_terminator
Advanced tools
This acts like webpack's DefinePlugin with minification pass. It allows to eliminate dead code statically, which can be required by regulations.
value = if ENV['FLAG']
:then_branch
else
value2 = unless ENV['PRODUCTION']
:then_branch
else
ENV['RUNTIME'] ? :else1 : :else2
end
end
# returns a valid ruby code string back with statically evaluated conditions
DeadCodeTerminator.strip(string, env: { "PRODUCTION" => true, "FLAG" => false })
value =
value2 =
ENV['RUNTIME'] ? :else1 : :else2
Note: it keeps precise code locations (including whitespaces and line-breaks). So if you have hotfix patches from upstream - they'll be applied without conflicts.
Other example can be found in specs
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that dead_code_terminator demonstrated a not healthy version release cadence and project activity because the last version was released 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.