Skip to content

Enhancing user-facing API#21

Open
AHReccese wants to merge 12 commits into
devfrom
refactoring
Open

Enhancing user-facing API#21
AHReccese wants to merge 12 commits into
devfrom
refactoring

Conversation

@AHReccese

@AHReccese AHReccese commented Jun 15, 2026

Copy link
Copy Markdown
Member

Reference Issues/PRs

In this PR, I've tried to enhance user-facing API, also keeping backward compatibility for direct use of global adapter (which we previously released) but with deprecation flag. We don't expose internal concrete adapters to user, only coarse-grained factory function & classes plus their required enums to config properly.

one note (I thought you might ask):

IPForceAdapter is a function (def IPForceAdapter(...)) but uses class-style PascalCase naming. There is a recognized Python idiom where factory functions that act as constructors use PascalCase to signal "this returns an instance, treat it like a class call", for example typing.NamedTuple from the standard library.

What does this implement/fix? Explain your changes.

Any other comments?

@AHReccese AHReccese added this to the ipforce v0.2 milestone Jun 15, 2026
@AHReccese AHReccese self-assigned this Jun 15, 2026
@AHReccese AHReccese added documentation Improvements or additions to documentation enhancement New feature or request Adapter labels Jun 15, 2026
@codecov-commenter

codecov-commenter commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (fdbfb0a) to head (408072f).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev       #21   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         4    +2     
  Lines           47        80   +33     
  Branches         0         1    +1     
=========================================
+ Hits            47        80   +33     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codacy-production

codacy-production Bot commented Jun 15, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 17 complexity · 0 duplication

Metric Results
Complexity 17
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@AHReccese AHReccese marked this pull request as ready for review June 17, 2026 22:13
@AHReccese AHReccese requested a review from sepandhaghighi June 17, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Adapter documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants