Skip to main content

A library for defining objects in memory

Project description

memobj

A library for defining objects in memory

installing

python 3.11+ only! pip install memobj

usage

import os

from memobj import WindowsProcess, MemoryObject
from memobj.property import Signed4


class PythonIntObject(MemoryObject):
    value: int = Signed4(24)


process = WindowsProcess.from_id(os.getpid())

# id(x) gives the address of the object in cpython
my_int = PythonIntObject(address=id(1), process=process)

# prints 1
print(my_int.value)

support

discord https://discord.gg/7hBStdXkyR

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memobj-0.5.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memobj-0.5.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file memobj-0.5.0.tar.gz.

File metadata

  • Download URL: memobj-0.5.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.11.0rc2 Windows/10

File hashes

Hashes for memobj-0.5.0.tar.gz
Algorithm Hash digest
SHA256 940fe2363abeeb74a0c0529787e5ac560c8ed5365145965b76817cc5f11919b7
MD5 51a2ea036685660919aa5f29a4c6a310
BLAKE2b-256 03d9b332856f82e9f6360116827c3612d948440c8beae42a8b23e464dc1ffed8

See more details on using hashes here.

File details

Details for the file memobj-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: memobj-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.11.0rc2 Windows/10

File hashes

Hashes for memobj-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87822d25723aa11e9afde74aac6c3153913a913cc1b705475631dfda1ab43501
MD5 c57ac5e5b36742fd7e45342bf82cea94
BLAKE2b-256 0d851651480a302d983516741ee198e67d2a34c10957b6adedd42c9fd1b624ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page