Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

pieforhead

Latest version: v0.2.2

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: wjs018
0 Stars
0 Forks
18 Versions
1.7K Downloads
Python Repo language

Scan summary

pieforhead was last scanned on 29 Nov 2026 at version 0.2.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 18 versions; the latest 2 were published within 5 days (25–29 Nov 2026).
  • Findings: No rules fired in version 0.2.2.
  • Downloads: 1,722 downloads.

Versions

18 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.2 LATEST 29 Nov 2026 No rules fired
0.2.1 25 Nov 2026 No rules fired
0.2.0 22 Nov 2026 No rules fired
0.1.4 21 Nov 2026 Not shown
0.1.3 21 Nov 2026 Not shown

No rules fired in 0.2.2

Findings

Findings for v0.2.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

pieforhead

A python wrapper for the PieFed API supporting both synchronous and asynchronous usage.

See the full docs here.

Usage Notes

In general, successful requests to the server should return a dict with the server's json response with very few exceptions (which should be type-hinted). Due to the alpha nature of the PieFed API, the maintenance burden of creating and updating response models as features/fields are added to the API is a burden that I don't want to take on at this time. Please refer to the official PieFed OpenAPI specification (stable version, development version) to see what your code should expect as a response.

By default, exceptions will be raised if something goes wrong (e.g. malformed request, network timeout, 5XX errors, etc.) to provide a trace. However, to suppress these exceptions, you can pass the raise_exceptions=False keyword argument when instantiating your client. This will cause a returned value of None instead of raising an exception. Please make sure that your code handles such a case appropriately.

Basic Client Usage

For more example usage, see the examples page of the documentation.

Authentication and Closing the Client
Synchronous Client

Users familiar with network libraries like requests would probably be most familiar with synchronous usage. However, to make network requests a bit more efficient, this library makes use of Clients within httpx where you can take advantage of connection pooling for multiple network requests. This means that when you instantiate a PieFed class, it is best practice to close it when you are done with it. Here are a couple examples that show how this can be done.

These snippets all do the same three things:

  1. Create a PieFed object with the given instance url (this creates the client)
  2. Log in using a username and password
  3. Close the client after we no longer need it

Closing it manually using the close function:

from pieforhead import PieFed

piefed = PieFed("https://instance.tld")
piefed.login("username", "password")
# Do stuff here...
piefed.close()

Using a context manager (a with block):

# Inside a context manager
with PieFed("https://instance.tld") as piefed:
    piefed.login("username", "password")
    # Do stuff here...

# The connection is closed after leaving the `with` block
Asynchronous Client

To use this libray in an async manner, there is a separate client, PieFedAsync that should be used. Everything else should work exactly the same as the synchronous client, except that results will need to be awaited.

Here is a snippet that does the same three actions as outlined above for the synchronous client, but using the PieFedAsync client.

# Put things in an async function so that we can use the await keyword
async def main():
    piefed_async = PieFedAsync("https://instance.tld")
    await piefed_async.login("username", "password")  # Notice the await keyword
    # Do stuff here...
    await piefed_async.close()

# Start the event loop and execute the async function
asyncio.run(main())

Similar to the synchronous client, you can also use a context handler to automatically close the async client:

async def main():
    async with PieFedAsync("https://instance.tld") as piefed_async:
        await piefed_async.login("username", "password")
        # Do stuff here...

    # Client is closed automatically once outside the context handler

# Start the event loop and execute the async function
asyncio.run(main())

Endpoint Coverage

Here is a high level summary of where things stand with implementing the wrapper around different PieFed API endpoint groups:

Endpoint Group Sync Client Async Client Notes
Site ✅ ✅ Instance chooser endpoints unimplemented
Upload ✅ ✅
User ✅ ✅ Register endpoint unimplemented
Post ✅ ✅ Experimental post/list2 endpoint unimplemented
Comment ✅ ✅
Community ✅ ✅
Feed ✅ ✅
Topic ✅ ✅
Private Message ✅ ✅
Admin ✅ ✅
Misc. ✅ ✅
Blocklist ✅ ✅

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases pieforhead

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229