Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

decancer-py

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decancer-py

Python bindings for decancer.

  • 0.4.0
  • PyPI
  • Socket score

Maintainers
1

decancer_py

Python bindings for decancer.

Installation

You can get started with decancer_py by installing from PyPI:

pip install -U decancer-py

Usage

decancer_py can be used to turn sketchy text strings into their more basic counterparts.

A single function and class are exported from decancer_py:

  • CuredString - A wrapper around a string object that can be used for comparisons.
  • parse - Parse a jank string into a normal string wrapped in a CuredString object.
from decancer_py import parse, CuredString

parsed: CuredString = parse("𝔂EE𝓣")

assert "ee" in parsed
assert parsed == "yeet"
assert parsed.contains("ee")
assert parsed.ends_with("et")
assert parsed.starts_with("ye")

# Implicit string conversion
print(parsed)
# yeet

License

decancer_py is licensed under the MIT License.

Keywords

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc