
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
EurocodePy is a Python package for calculating structures according to Eurocodes. It provides a collection of functions that enable engineers to design and analyze structures based on the Eurocode standards. In addition, it includes a database of structural materials and steel profiles, making it easy to design and analyze structures according to Eurocode standards.
There are also some functions to work with material properties:
The utils package has some functions that can be useful:
You can install EurocodePy using pip or uv by running the following command:
pip install eurocodepy
or
uv add eurocodepy
Too upgrade to the latest version use:
pip install eurocodepy --upgrade
EurocodePy provides a range of functions for designing and analyzing structures according to Eurocodes. Here are some examples:
import eurocodepy as ec
from eurocodepy import ec2
EurocodePy includes a database of structural materials and steel profiles. The database is stored in a JSON file and can be easily updated or extended. The materials database includes properties such as the density, modulus of elasticity, and Poisson's ratio, while the steel profiles database includes properties such as the cross-sectional area, moment of inertia, and section modulus.
The database is stored in a JSON file 'eurocodes.json'. This file is loaded when the package is imported, so you can modify it to include your own properties. If you have some suggestions or materials to add to the database and want them to be included for all the community, please contribute as described below in the contributions section. Steel profiles are stored in a separate file 'prof_euro.json'
The database can be accessed through a dictionary. There are also some aliases to easily access the database. The following code gives examples on how to use it.
import eurocodepy as ec
# To access the entire database
db = ec.db
# To access concrete grade C30/37
conc = ec.db["Materials"]["Concrete"]["Grade"]["C30_37"] # Alternative 1
conc = ec.Materials["Concrete"]["Grade"]["C30_37"] # Alternative 2
conc = ec.Concrete["Grade"]["C30_37"] # Alternative 3
conc = ec.ConcreteGrades["C30_37"] # Alternative 4
# To access a steel profile
ipe200 = ec.db["SteelProfiles"]["EuroI"]["IPE200"] # Alternative 1
ipe200 = ec.SteelProfiles["EuroI"]["IPE200"] # Alternative 2
Current materials in the database are:
Available european steel profiles are:
A more or less complete description of existing packages and modules can be found on https://pcachim.github.io/eurocodepy
This project is licensed under the MIT License. See the LICENSE file for details.
We welcome contributions from everyone. Before getting started, please read our Code of Conduct and Contributing Guidelines.
FAQs
A package for eurocode calculations
We found that eurocodepy 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.