
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
############ Introduction ############
With the dum module you can easily map data from structured files to a set of python classes. The current version can be used with json, csv or xlm formats, more are expected to come.
The main idea is that your code is designed with objects that share more or less the same organization than the data in the original file. With a few directives, it must then be possible to directly project the data parsed from the file to the class model of your application.
For sample a minimal (all the display methods are still to write...) Atom <https://en.wikipedia.org/wiki/Atom_%28standard%29>
_ application
could look like
::
class Author:
class dum:
name =""
email=""
class Link:
class dum:
rel=""
href=""
class Entry:
class dum:
title = ""
author = [Author]
link = [Link]
updated = dateutil.parser.parse
class Atom:
class dum:
title =""
subtitle= ""
entry = [Entry]
link = [Link]
updated = dateutil.parser.parse
atom = dum.xml(Atom, open("myrss"))
The library has been tested for Python 3.4 There is no external dependencies.
FAQs
Direct data to object for xml, jon and csv
We found that dum 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.