Tagged articles
Pickle
20 articles · Page 1 of 1
This article explains Python object injection, covering class basics, the pickle module's role in serialization, how untrusted data can lead to code execution, detection methods, and step‑by‑step creation of a malicious payload to demonstrate a real exploit.
PickleSecuritySerialization
0 likes · 7 min read

This article demonstrates five practical techniques for loading Excel and CSV data with pandas in Python, including smarter DataFrame construction, parallel processing with Joblib, and using pickle for faster storage, achieving speed improvements of up to three orders of magnitude.
PandasPickledata loading
0 likes · 10 min read

This article introduces several essential Python standard library modules—including cmd, getpass, glob, pickle, shelve, codecs, functools, inspect, weakref, and xml.etree.ElementTree—providing brief descriptions and ready‑to‑run code examples that demonstrate their core functionalities.
Picklecmdgetpass
0 likes · 4 min read

Python's pickle module provides a simple way to serialize and deserialize complex objects such as lists, dictionaries, and class instances, allowing them to be saved to or loaded from files or byte streams, with examples of pickling, unpickling, using dumps/loads, protocol versions, and security considerations.
Pickledata persistencedeserialization
0 likes · 4 min read

This guide explains how to serialize and deserialize Python objects using the pickle, json, and xml.etree.ElementTree modules, and demonstrates practical API testing scenarios—including POST, GET, PUT, DELETE, and nested JSON handling—so you can choose the right format for your needs.
API testingJSONPickle
0 likes · 9 min read

This article provides a thorough tutorial on Python file handling, covering how to open and close files, read and write data, work with absolute and relative paths, use different file modes, copy files, manipulate CSV files, and serialize data with JSON and pickle modules.
CSVJSONPickle
0 likes · 19 min read

This tutorial presents a complete overview of Python file handling, covering opening and closing files, absolute and relative paths, various access modes, reading and writing techniques, pointer control, file copying, CSV processing, in‑memory streams, sys redirection, and JSON/pickle serialization, all illustrated with practical code examples.
CSVJSONPATH
0 likes · 19 min read

This article walks through the step‑by‑step process of locating a .pkl file, correcting filename issues, using pandas to read the pickle data, handling path problems on macOS, and ensuring the file is correctly placed in a PyCharm project for successful data loading.
PandasPicklePython
0 likes · 5 min read

This tutorial explains Python's file opening and closing methods, various file path formats, reading and writing techniques including with‑open, pointer manipulation, copying files, CSV read/write operations, in‑memory streams with StringIO/BytesIO, sys.stdin/stdout usage, and data serialization/deserialization using JSON and pickle.
CSVJSONPickle
0 likes · 15 min read

This article provides a thorough tutorial on Python file I/O, covering opening and closing files, mode flags, absolute and relative paths, reading and writing techniques, file copying, CSV read/write, in‑memory streams, sys module redirection, and serialization with JSON and pickle, including code examples and best practices.
CSVJSONPickle
0 likes · 20 min read

This comprehensive guide walks you through Python's file handling—from opening and closing files, using absolute and relative paths, and various read/write modes, to copying files, working with CSV, in‑memory streams, and serializing data with JSON and pickle—complete with clear code examples.
JSONPicklePython
0 likes · 18 min read

This article explains Python’s built‑in pickle module, detailing its four core functions, usage syntax, parameter meanings, and practical code examples for object serialization to binary data, file storage, and deserialization, while also discussing its limitations and alternatives like ZODB.
PickleSerializationdata persistence
0 likes · 8 min read

This article introduces Python's built-in pickle module, explains its four core functions (dumps, loads, dump, load), details their parameters and usage, and provides code examples for serializing and deserializing objects to memory and files, while noting performance limitations and alternatives such as ZODB.
PickleSerializationdata persistence
0 likes · 8 min read

This article introduces Python’s pickle module, explains its purpose for object persistence, details key functions like dump, dumps, load, and loads with code snippets and example outputs, and demonstrates practical usage scenarios and common pitfalls, helping readers efficiently serialize and deserialize data in Python.
File I/OPickleSerialization
0 likes · 6 min read

This article explains how Python persistence works by serializing objects with pickle and cPickle, compares file‑based and database storage, demonstrates basic and advanced usage—including handling circular references, custom classes, and versioning—and offers practical tips for maintaining pickled data across code changes.
Data StorageObject PersistencePickle
0 likes · 22 min read

This article explains Python object persistence, covering the concepts of serialization with pickle and cPickle, various storage mechanisms, handling of complex objects, reference cycles, class instance pickling, versioning strategies, and advanced techniques such as custom state methods and Pickler/Unpickler usage.
Data StoragePicklePython
0 likes · 22 min read

This article provides a thorough overview of Python file handling, covering opening and closing files, reading and writing modes, absolute and relative paths, file copying, CSV read/write, in‑memory streams with StringIO/BytesIO, sys I/O redirection, and data serialization using JSON and pickle.
BytesIOCSVJSON
0 likes · 18 min read

This guide walks you through opening, reading, writing, and closing files in Python, detecting file existence, using file dialogs, fetching web data, handling exceptions, raising custom errors, and performing binary I/O with pickle, complete with code examples and practical tips.
Exception HandlingFile I/OPickle
0 likes · 11 min read

This article outlines ten frequent security flaws in Python—from input injection and unsafe XML parsing to misuse of assert statements and vulnerable third‑party packages—explaining how each can be exploited and providing concrete remediation techniques to write safer code.
Best PracticesPicklePython
0 likes · 10 min read

This article provides a comprehensive overview of Python fundamentals, covering its interpreted nature, interactivity, object‑oriented features, benefits, coding standards like PEP8, serialization with pickle, memory management, debugging tools, decorators, data structures, namespaces, lambda functions, testing, and more.
DebuggingPicklePython
0 likes · 9 min read
