Giter Site home page Giter Site logo

python-neocities's Introduction

NOTE: THIS IS NOT FOR NEOCITIES SUPPORT! Any issues filed not related to the source code itself will be closed. For support please contact: https://neocities.org/contact

Neocities.org

Build Status Coverage Status

The web site for Neocities! It's open source. Want a feature on the site? Send a pull request!

Getting Started

Neocities can be quickly launched in development mode with Vagrant. Vagrant builds a virtual machine that automatically installs everything you need to run Neocities as a developer. Install Vagrant, then from the command line:

vagrant up --provision

Vagrant takes a while, make a pizza while waiting

vagrant ssh
bundle exec rackup -o 0.0.0.0

Now you can access the running site from your browser: http://127.0.0.1:9292

Want to contribute?

If you'd like to fix a bug, or make an improvement, or add a new feature, it's easy! Just send us a Pull Request.

  1. Fork it (https://github.com/neocities/neocities/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

python-neocities's People

Contributors

neoslaughter avatar sharph avatar soulshake avatar spyduck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-neocities's Issues

Python 3 support

Python 2.7 will officially be discontinued in 2020.

There are ways to user __future__-imports to support both python3 and 2 though. Might look into it

Doc error in readme

You can upload files with

nc.upload(('name_on_server', 'name_on_disk'), ...)

I create a local file on disk named 'local.html'. I want to upload to my neocites site at .../remote.html.

when I try: nc.upload(('remote.html','local.html'))
I get: FileNotFoundError: [Errno 2] No such file or directory: 'remote.html'

when I try: nc.upload(('local.html','remote.html'))
the upload succeeds.

So based on my interpretation of 'name_on_server' and 'name_on_disk', I think the documentation in readme should say:

...nc.upload(('name_on_disk', 'name_on_server'), ...)

Delete method api key authentication method is 'get' typo

Hi, Neocities team!

No clue how it slipped past so many people for over 6 years, but i found a bug in the Python API wrapper that you provide (thank you for your generousity, it really helps with my project!)

So it's possible to delete files using log:pass auth using the wrapper. But for token-based auth, the request method is "get" instead of "post", which is not the expected request type. I think that's just a typo; i changed it to "post" on my local copy and now it works.

The line with the bug is #79 @ https://github.com/neocities/python-neocities/blob/master/neocities/neocities.py

Thanx for providing the tools, and i hope this helps improve this one even if just a bit <3

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.