Git Product home page Git Product logo

pwiki's People

Contributors

fastily avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

theresnotime

pwiki's Issues

Feature request: Allow to specify the server IP for wiki domain resolution

I am using this library in my automation project. I would like to request a feature that allows users to specify the server IP address for wiki domain resolution. This feature would be similar to modifying the Hosts file, enabling users to override the default DNS lookup and resolve wiki domains to specific IP addresses.

This functionality would be particularly useful in scenarios where network configurations or security policies restrict access to certain domains, or when testing against specific wiki instances that are not publicly accessible. By providing the ability to specify the server IP address, users can ensure that the library connects to the intended wiki instance without relying on external DNS resolution.

Thank you for considering my request.

Specify a full URL

We use pwiki to generate pages from our CI/CD server, but our Wiki is located internal.
Therefore a domain-name only is not sufficient for us.
We need, protocol (http), port (8081) and path (mediawiki-1.41.0) to access the wiki.

I've hacked a solution, but I don't thinks that's what you have in mind.

def __init__(self, domain: str = "en.wikipedia.org", url: str = "https://en.wikipedia.org/w", username: str = None, password: str = None, cookie_jar: Path = Path(".")):
    ...
    self.endpoint: str = f"{url}/api.php"
    ...

Usage:

wiki = Wiki("compiler", "http://compiler:8081/mediawiki-1.41.0", "xxx", "xxx")

Any suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.