Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
dflook
python-minifier
Repository navigation
Code
Issues
31
(31)
Pull requests
10
(10)
Actions
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
python-minifier
src
python_minifier
transforms
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 13, 2026
Lazy imports
dflook
committed
68e75f7
View commit details
Copy full SHA for 68e75f7
View code at this point
Browse repository at this point
Commits on Aug 3, 2026
Reduce required stack frames
Show description for a45fe5d
dflook
committed
a45fe5d
View commit details
Copy full SHA for a45fe5d
View code at this point
Browse repository at this point
Commits on Jul 30, 2026
Re-add ~bool folding
dflook
committed
e30b8fe
View commit details
Copy full SHA for e30b8fe
View code at this point
Browse repository at this point
Don't recurse into child namespace bodies
dflook
committed
1b46b8b
View commit details
Copy full SHA for 1b46b8b
View code at this point
Browse repository at this point
Commits on Jul 29, 2026
Don't fold ~ on NameConstant
Show description for 83c4828
dflook
committed
83c4828
View commit details
Copy full SHA for 83c4828
View code at this point
Browse repository at this point
Ignore warnings generated while folding
Show description for a8eedc2
dflook
committed
a8eedc2
View commit details
Copy full SHA for a8eedc2
View code at this point
Browse repository at this point
Fully search for namespace properties
Show description for 4a79153
dflook
committed
4a79153
View commit details
Copy full SHA for 4a79153
View code at this point
Browse repository at this point
Commits on Jul 27, 2026
Update documentation
dflook
committed
641662a
View commit details
Copy full SHA for 641662a
View code at this point
Browse repository at this point
Commits on Jul 26, 2026
Add dead branch removal
Show description for 826e813
dflook
committed
826e813
View commit details
Copy full SHA for 826e813
View code at this point
Browse repository at this point
Commits on Dec 21, 2025
Correctly fold UnaryOp nodes
dflook
committed
32d585a
View commit details
Copy full SHA for 32d585a
View code at this point
Browse repository at this point
Commits on Dec 11, 2025
Fix __debug__ comparison check
Show description for 97cff9d
dflook
committed
97cff9d
View commit details
Copy full SHA for 97cff9d
View code at this point
Browse repository at this point
Commits on Oct 20, 2024
Use free function to get a nodes parent.
Show description for 7c88edf
dflook
committed
7c88edf
View commit details
Copy full SHA for 7c88edf
View code at this point
Browse repository at this point
Commits on Oct 17, 2024
Create dummy AST nodes when they are missing
Show description for cfc3a4b
dflook
committed
cfc3a4b
View commit details
Copy full SHA for cfc3a4b
View code at this point
Browse repository at this point
Commits on Oct 14, 2024
Resolve lint warnings
dflook
committed
9c9266e
View commit details
Copy full SHA for 9c9266e
View code at this point
Browse repository at this point
Commits on Oct 12, 2024
Format Python code
dflook
committed
5d92a1a
View commit details
Copy full SHA for 5d92a1a
View code at this point
Browse repository at this point
Commits on Oct 10, 2024
Sort imports
dflook
committed
6e80593
View commit details
Copy full SHA for 6e80593
View code at this point
Browse repository at this point
Commits on Sep 28, 2024
Fix namespace for new Assign nodes introduced by annotation removal.
Show description for c8cc2c7
dflook
committed
c8cc2c7
View commit details
Copy full SHA for c8cc2c7
View code at this point
Browse repository at this point
Commits on Aug 31, 2024
Only remove brackets from raises for builtin exceptions
Show description for 61ee2d7
dflook
committed
61ee2d7
View commit details
Copy full SHA for 61ee2d7
View code at this point
Browse repository at this point
Commits on Aug 30, 2024
Make sure combined imports maintain the same namespace
dflook
committed
c8c847e
View commit details
Copy full SHA for c8c847e
View code at this point
Browse repository at this point
Commits on Sep 26, 2023
Set namespace for TypeParam nodes
Show description for 1329e9d
dflook
committed
1329e9d
View commit details
Copy full SHA for 1329e9d
View code at this point
Browse repository at this point
Introduce backward compatible ast module
dflook
committed
e4a793e
View commit details
Copy full SHA for e4a793e
View code at this point
Browse repository at this point
Commits on Sep 2, 2023
Refactor for extra pessimism
Show description for 056ef3d
dflook
committed
056ef3d
View commit details
Copy full SHA for 056ef3d
View code at this point
Browse repository at this point
Commits on Aug 30, 2023
Add constant folding option
dflook
committed
1ecf7e6
View commit details
Copy full SHA for 1ecf7e6
View code at this point
Browse repository at this point
Commits on Aug 29, 2023
Fix for nan/inf literals
Show description for 7df7951
dflook
committed
7df7951
View commit details
Copy full SHA for 7df7951
View code at this point
Browse repository at this point
Commits on Aug 24, 2023
Ignore str/bytes and pow
dflook
committed
1a88fcb
View commit details
Copy full SHA for 1a88fcb
View code at this point
Browse repository at this point
Commits on Aug 22, 2023
Ignore div for now
dflook
committed
4abe91c
View commit details
Copy full SHA for 4abe91c
View code at this point
Browse repository at this point
Commits on Aug 21, 2023
Ignore huge values
dflook
committed
bcaf96f
View commit details
Copy full SHA for bcaf96f
View code at this point
Browse repository at this point
Correct construct nan
dflook
committed
5314549
View commit details
Copy full SHA for 5314549
View code at this point
Browse repository at this point
Correct construct nan
dflook
committed
d5bfd11
View commit details
Copy full SHA for d5bfd11
View code at this point
Browse repository at this point
Commits on Aug 20, 2023
Transform folded complex into binop if necessary.
Show description for 14afa46
dflook
committed
14afa46
View commit details
Copy full SHA for 14afa46
View code at this point
Browse repository at this point
Commits on Aug 18, 2023
Complex
dflook
committed
3992a9c
View commit details
Copy full SHA for 3992a9c
View code at this point
Browse repository at this point
Complex
dflook
committed
e2458c1
View commit details
Copy full SHA for e2458c1
View code at this point
Browse repository at this point
Commits on Aug 17, 2023
Represent negative numbers as a USub UnaryOp so that the ast roundtrips
dflook
committed
c81dbfb
View commit details
Copy full SHA for c81dbfb
View code at this point
Browse repository at this point
Commits on Aug 16, 2023
Add simple constant folding
dflook
committed
523364b
View commit details
Copy full SHA for 523364b
View code at this point
Browse repository at this point
Add simple constant folding
dflook
committed
5b9ae1b
View commit details
Copy full SHA for 5b9ae1b
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.