Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6211121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:16:56+00:00 2026-05-24T06:16:56+00:00

I’m hoping to write a custom data model for my web application that exists

  • 0

I’m hoping to write a custom data model for my web application that exists in memory as a collection of custom python objects. The web application could manipulate data on these objects and run their methods on user requests, and after a request thread dies the objects persist in memory.

The model objects would have methods to write themselves to disk (not sure how I will do this yet but that’s not what I’m interested in here), but only for backup purposes. Ideally they will persist in memory as long as the server runs.

Access to the model would have to be managed by a session in the case that multiple users are manipulating data on the objects at the same time, though this occurrence will be relatively rare.

It is not an option to initialise the objects with the web application, as they must persist even on a reset of the web app.

Are there any sort of 3rd party components that would make setting up this sort of model easier? Any advice for going down this path? Any help would be appreciated, as I don’t have much experience with programming independent processes to communicate in python or otherwise.

My server will be Linux and I’m planning on using Pyramid as a framework for the web application.

Thanks in advance,
Will

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:16:57+00:00Added an answer on May 24, 2026 at 6:16 am

    I think this mostly depends on how much work you want to put into what looks like building your own ORM.

    If you’re feeling up to the task of serializing your python objects, and depending on the complexity of your models, you could give a shot at Redis.

    Redis is a non-relational database, based on a key-value model. All your data is stored in memory, and is periodically (frequency depends on number of writes and is customizable) dumped to the disk. It’s also pretty easy to pick up and use.

    There’s a wrapper around redis that is available for python: redis_py.

    Of course, Redis is not the only of its kind, and you could also look at similar alternatives such as Tokyo Tyrant.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to clean up various Word 'smart' characters in user input, including but
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
i want to parse a xhtml file and display in UITableView. what is the
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.